Language Literals

Each friendly language literal is a reference to an instance of class java.util.Locale.

The language literal is always of type Language.

LanguageLiteral:
LanguageDeclarator [LanguageDesignatoropt]
LanguageDeclarator: one of
l L
LanguageDesignator:
Language Countryopt Variantsopt
Language:
any valid ISO language code defined as the lower-case two-letter codes
by ISO-639
Country:
_ CountryCode
CountryCode:
any valid ISO country code defined as the upper-case two-letter codes
by ISO-3166
Variants:
Variant
Variants Variant
Variant:
_ VariantCode
VariantCode:
VariantCharacter
VariantCode VariantCharacter
VariantCharacter:
InputCharacter but not _

The VariantCode is a free form string which is used to further qualify the language. The _EURO literal is normally used to specify the use of the Euro Currency for a European country. It could also be used to distinguish between different talents used for the prompt recordings (for example, L[en_CA_John] versus L[en_CA_Jenna]). The variant can be composed of many variant parts each separated with an underscore (for example, L[de_DE_EURO_Joe]).

Each language literal is a reference to an instance of class java.util.Locale.

Note

The language literal requires that the proper language pack is installed.