Feature Request: Add Custom Language
-
It seems that language tags should use RFC 4646 language codes according to W3C. Here is the reference: https://www.w3.org/International/articles/language-tags/
However, WordPress uses ISO 639-3 locale code. I found it in Request a New Locale section.
WordPress already have
zh-CNandzh-TWnow. But I wantzh-Hans-CNandzh-Hant-CN. The following example shows the difference.- en: software
- zh-Hans-CN: 软件 (Chinese, Simplified Han, China)
- zh-Hant-CN: 軟件 (Chinese, Traditional Han, China)
- zh-Hans-TW: 软体 (Chinese, Simplified Han, Taiwan)
- zh-Hant-TW: 軟體 (Chinese, Traditional Han, Taiwan)
In my case,
zh-CN(=zh-Hans-CN) andzh-TW(=zh-Hant-TW) are ambiguous.HansandHantmeans simplified or traditional written system, whileCNandTWmeans regions with specific word perfect. They are different. WordPress usually determinelangattribute ofhtmltag byget_localeAPI, but I think locale code is not equivalent to language code in many cases.Of course in practice, RFC 4646 language codes are too many, and seems not a good choice for WordPress translations, because it may be impossible to create and maintain large quantities of WordPress translated versions. But I want a feature that I can add and control custom translations locally, just like plugins. Besides a drop-down list to select languages at setting panel, I need a button to add custom languages.
BTW, in Microsoft Windows system, a locale name is based on the language tagging conventions of RFC 4646 (Windows Vista and later), which is mentioned here
The topic ‘Feature Request: Add Custom Language’ is closed to new replies.