-
-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Using non-standard locale name for Chinese (zh_Hans, zh_Hant) #294
Comments
Thanks for the bug report. The directory naming is a direct result of the translation tool used for Peek, I have to figure out how to best deal with this. @nijel Any thoughts on this? |
This is actually standard name (see RFC 4646 and RFC 4647). You can find reasoning in several places (eg. https://code.djangoproject.com/ticket/18419) - it doesn't make sense to bind traditional/simplified variants with country as they are used in more countries. Still if you prefer to use zh_CN and zh_TW for some reason, just rename the files and Weblate will work just fine. |
While I understand that
The ideal situation is that we organize translations for all those variants (which happens in some large projects like KDE). With smaller projects, Well those above is not the most important reason. The most important thing is that current installation will make Chinese translations invalid because the system only recognize .mo files inside |
The problem with country based names is that you want to use same translation for zh_CN and zh_SG, similarly for zh_HK and zh_TW. As written before, Weblate will work with any naming, feel free to rename the files to whatever you find appropriate. It defaults to follow standards when creating new translations, but it's flexible in accepting other naming. |
@nijel Thanks for the input. I have renamed the files now, glad to hear weblate can deal with this naming. For desktop use it completely makes sense to follow this naming. Peek was literally the only software installed on my system which used the zh_Hans and zh_Hant naming. |
While examining the default installation of peek into system, I found the following files:
Using
zh_Hans
andzh_Hant
in/usr/share/locale/
directory is weird. Almost all other applications on Linux install them into directories namedzh_CN
andzh_TW
(which somehow represents the simplified variant of Chinese and the traditional variant of Chinese).The text was updated successfully, but these errors were encountered: