Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.19 KB

File metadata and controls

43 lines (35 loc) · 1.19 KB

GetCurrentLocalization

Description

Get the Vectorworks language in the ISO 639-3 draft standard Language ID and sublanguage is unused and will be the empty string reserved for future use for a regional dialect.

Currently this will always return the same language for a given installation of Vectorworks.

PROCEDURE GetCurrentLocalization(
				VAR language    : STRING;
				VAR subLanguage : STRING);
def vs.GetCurrentLocalization():
    return (language, subLanguage)

Parameters

Name Type Description
language STRING Output parameter. Returns language in ISO 639-3 draft standard Language ID.
subLanguage STRING Output parameter. Unused. Returns empty string.

Examples

GetCurrentLocalization('Example', 'Example');
import vs

# Get the Vectorworks language in the ISO 639-3 draft standard Language ID
# and sublanguage is unused and will be the empty string reserved for future
# use for a.
language, subLanguage = vs.GetCurrentLocalization()
vs.Message('GetCurrentLocalization returned: ' + str((language, subLanguage)))

Version

Availability: from Vectorworks 2010

Category