![]() |
Language ID Format |
Use this dialog to specify what kind of language IDs are used when writing files.
Specifies how to format language IDs used in xml:lang attributes. Possible values are:
| Value | Description |
|---|---|
| Standard: ll[-Ssss][-CC] | Standard language ID that contains an ISO 639-1 language ID (ll) and optional script ID (Ssss) and/or ISO-3166 country ID (CC). |
| Legacy: ll[-CC] | Legacy language ID that contains an ISO 639-1 language ID (ll) and an optional ISO-3166 country ID (CC). If the ID uses the secondary script of the language (e.g., Traditional Chinese), then the country ID is required. |
| Underline: ll[_CC] | As above, but separator character is underline, "_", instead of the hyphen, "-". |
It is recommended to use the default language IDs (Standard). Use other formats only if your files are consumed by a system that requires legacy IDs.
Specifies the case of the language attributes that are used in the file. Possible values are:
| Value | Description |
|---|---|
| Standard (ll-CC) | The language part is written in lower case. The optional country part is written in the upper case. For example, en-US is for English in the United States. This is the default value. |
| Lower (ll-cc) | Both language and country parts are written in lower case. For example, en-us |
| Upper (LL-CC) | Both language and country parts are written in upper case. For example, EN-US |
Specifies when the script part is included in the language ID. This is visible when language ID format is set to Standard. Possible values are:
| Value | Description |
|---|---|
| Standard | Script ID is included if it is absolutely needed to make ID unambiguous. For example, English is en, Simplified Chinese is zh, and Traditional Chinese is zh-Hant. |
| On multiple scripts | Script ID is included if the language can use more than one script. For example, English is en, Simplified Chinese is zh-Hans, and Traditional Chinese is zh-Hant. |
| Always | Script ID is always included. For example, English is en-Latn, Simplified Chinese is zh-Hans, and Traditional Chinese is zh-Hant. |
Specifies when the script part is included in the language ID. This is visible when language ID format is set to Legacy or Underline. Possible values are:
| Value | Description |
|---|---|
| No | A country ID is not added if not explicitly given. For example, English is en, Simplified Chinese is zh, and Traditional Chinese is zh-TW. |
| Yes | A country ID is included if the language has more than one possible script. For example, English is en, Simplified Chinese is zh-CN, and Traditional Chinese is zh-TW. |