-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Translations. Chinese zh-cn
should become zh-hans
.
#2688
Comments
Are you able to provide any more info, links, what we need to do exactly? |
In drf3.1's Internationalization, i want to translationed the error response . In dango now chinese is config in settings.py like this:
but zh-hans is not support in drf3.1.so, I can't translationed the error response to chinese |
Which of the two language dialects do our current translations match best? |
both can, but because of zh-cn is expired in django1.9,so, my settings.py's language config is zh-hans. |
Okay, so let's plan to update |
zh-cn
should become zh-hans
.
Updated the title of this to reflect what sounds like the right action based on this conversation. |
zh-cn will become zh-hans ("simplified", mostly used in China), and zh-tw will become zh-hant ("traditional", mostly used in Taïwan). https://docs.djangoproject.com/fr/1.7/internals/deprecation/#deprecation-removed-in-1-9 |
Thanks @deronnax - that's really helpful. |
Will this be update at 3.3.0? |
This will be added once we have Django 1.9 support |
oh wait, this is already ongoing with Django, my bad. |
Can not join the team. |
In version 3.3.2, I found So I look up django's |
Already solved in #3739 thanks to @nypisces |
Need update from tx,rename folder 'zh-Hans' to 'zh_Hans', and 'zh-Hant' to 'zh-Hant'. now the folder name still error. |
Bumping this issue. |
@xordoquy like Django locale, zh_Hans & zh_Hant are correct, DRF locale still have wrong folder(zh-Hans & zh-Hant) |
That's weird, folder name seems to be correct. Could this be this line: https://github.com/tomchristie/django-rest-framework/blob/master/rest_framework/locale/zh_Hant/LC_MESSAGES/django.po#L17 ? |
@nypisces thanks a lot for your guidance ! |
zh-cn will expired in Django1.9, the new format is zh-hans, but drf3.1.0 does not support this type of language.
The text was updated successfully, but these errors were encountered: