Closed ZaynChen closed 1 year ago
I'd say we should use the word "region".
On POSIX platforms such as Unix, Linux and others, locale identifiers are defined by ISO/IEC 15897, which is similar to the BCP 47 definition of language tags, but the locale variant modifier is defined differently, and the character set is included as a part of the identifier.[citation needed] It is defined in this format: [language[_territory][.codeset][@modifier]]. (For example, Australian English using the UTF-8 encoding is enAU.UTF-8.) -- [wikipedia](https://en.wikipedia.org/wiki/Locale(computer_software))
Sorry, it's because the locale
is defined in format [language[_territory][.codeset][@modifier]]
, and lightdm using name
, code
and territory
to get the language
information. So I don't think we should use another word.
On POSIX platforms such as Unix, Linux and others, locale identifiers are defined by ISO/IEC 15897, which is similar to the BCP 47 definition of language tags, but the locale variant modifier is defined differently, and the character set is included as a part of the identifier.[citation needed] It is defined in this format: [language[_territory][.codeset][@modifier]]. (For example, Australian English using the UTF-8 encoding is enAU.UTF-8.) -- [wikipedia](https://en.wikipedia.org/wiki/Locale(computer_software))
Sorry, it's because the
locale
is defined in format[language[_territory][.codeset][@modifier]]
, and lightdm usingname
,code
andterritory
to get thelanguage
information. So I don't think we should use another word.
hmm, makes sense then.
That's really cool! Thanks :)
This commit fix https://github.com/Litarvan/lightdm-webkit-theme-litarvan/issues/168.
It will try to use language
name
andterritory
to findcode
inlightdm.languages
. Ifterritory
is undefined, it will usename
to find thecode
and is unable to distinguishzh_CN
&zh_TW
.zh
is the name of language, which in this case is chinese.CN
(for China) &TW
(for Taiwan) is the territory.