L-VIS User Manual
255
LOYTEC
Version 6.2
LOYTEC electronics GmbH
Unknown keywords are ignored. The following keywords may be useful to
override the default settings of the selected locale:
o
calendar:
A calendar specifier such as
gregorian
,
islamic
,
chinese
,
hebrew
,
japanese
, or
buddhist
. See Section 11.3.2 below for a list of
valid calendar names.
o
currency:
A standard three-letter currency code, such as
USD
or
JPY
.
Can be used to override the default currency of the selected locale and is
used by the currency format of number controls.
o
numbers:
A numbering system specifier such as for example
latn
,
arab
,
deva
,
hans
, or
thai
. The numbering system defines the set of digits used
for decimal formatting, such as
latn
for western (ASCII) digits, or
thai
for Thai digits. The numbering system may also define complex
algorithms for number formatting, such as
hansfin
for simplified
Chinese numerals using financial ideographs. A list of valid numbering
system names is given in Section 14.3.3.
NOTE:
The numbers keyword can be used to globally override the default numbering system
specified by the selected locale. To use specific numbering systems for individual controls,
override the numbering system directly in the controls properties. The global setting only
affects controls which inherit their numbering system from the locale (default setting).
The basic syntax to combine the individual pieces of information and form a valid locale
specifier, requires that
language
,
script
, and
country
codes are separated by underscore. If
keywords are specified, an @ sign must be used to separate the base locale from the
keyword section. Keywords are given using a
key=value
syntax, where multiple keywords
are separated by semicolons:
language_script_country@keyword1=value1;keyword2=value2....
Anything except the language code is optional, so it is valid to just select a language by
writing
en
(English),
de
(German),
jp
(Japanese), or any other ISO-639 language code to
the system register. However, in most cases a language and a country code should be given
to fully specify a locale, since the country code defines how numbers are formatted
(decimal separator, grouping, and currency).
Example: Japanese for Japan with native calendar and numbering system:
ja_JP@calendar=japanese;numbers=jpan
Example: Traditional Chinese for Hong Kong with Traditional Chinese calendar:
zh_Hant_HK@calendar=chinese
NOTE:
To build language selector buttons in the project, text or bitmap controls indicating the
available languages could be placed on the page. The controls would operate in push
button mode with send next value and wrap around. Each button has a mapping table with
only one entry, specifying the appropriate locale ID string for the language and a unique
number for that entry, used to identify the selected language numerically for highlighting
purposes. Connected to the control should be the system register Locale ID Write as output
to receive the locale ID string from the mapping table, as well as an analog user register in
bidirectional mode to receive the selected language number.
11.3.2 Calendar Names
This section lists the valid calendar names for use with the
calendar
keyword:
buddhist
: Thai Buddhist calendar