-
Notifications
You must be signed in to change notification settings - Fork 196
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
Problem with language code sr-Latn. #12
Comments
I change this line of code in poutil.py: after this sr-Latin is working. |
@ikresoft I'm not sure, are you suggesting this is a bug in Rosetta or Django? All locale directories in Django have an underscore, regardless of whether the locale name (in settings.py) is defined with a dash (-) or an underscore (_). |
I am also confused, in django locale directories are underscored but in i18n for my country is sr-latn and that coresponds to sr_Latn directory in django, and only way rosseta works for me is this capitalize() function in poutil.py |
Same issues worked for me. The problem is when Django sees languages, rosetta doesn't and vise versa for dashed languages as 'zh-cn', 'zh-tw'. (Django expects zh_CN, zh_TW) Steps to fix:
P.s. you can't just insert 'zh_CN' and 'zh_TW' into settings.py LANGUAGES list because these are invalid language codes. |
There is no way I can see translation for this language code sr-Latn or sr-latn. Probably django is expecting folder name sr_Latn to look for translation files.
The text was updated successfully, but these errors were encountered: