The TargetLocale indicates the locale ID to apply to strings for the following purposes:
The locale is an ID consisting of optional language, script, country, and variant fields in that order, separated by underscores, followed by an optional keyword list. The script, if present, is four characters long: this distinguishes it from a country code, which is two characters long. Other fields are distinguished by position as indicated by the underscores. The start of the keyword list is indicated by '
@', and consists of one or more keyword/value pairs separated by commas.
TargetLocale may be specified globally as well as locally. Therefore,
TargetLocale may be specified as a child of the
DDX root element, and the locale ID will apply to its parent element and will inherit elements that may also contain
TargetLocale elements. The most local
TargetLocale specification is the one used at any point in the DDX document.
There is a legacy case of a locale specified as an attribute of another element. The PDF source element includes the attribute "
sortLocale" used for sorting a list of input names (via the "
sourceMatch" attribute). If not specified, "
sortLocale" can inherit from a more global specification of
TargetLocale. A
TargetLocale contained within a
PDF source element is considered more local than its "
sortLocale" attribute.