Permalink
Browse files

Fixed #18149 -- Changed language codes for Chinese

Language codes for Chinese are zh_Hans (Simplified) and zh_Hant (Traditional).
Added support for browsers that still send the deprecated language codes.

Thanks to Olli Wang for the report.
  • Loading branch information...
1 parent cb2c3ce commit c0a2388a1c4ead1afaec98e4ebc953a772ca3849 @Bouke Bouke committed Nov 4, 2013
@@ -127,6 +127,8 @@
('ur', gettext_noop('Urdu')),
('vi', gettext_noop('Vietnamese')),
('zh-cn', gettext_noop('Simplified Chinese')),
+ ('zh-hans', gettext_noop('Simplified Chinese')),
+ ('zh-hant', gettext_noop('Traditional Chinese')),
('zh-tw', gettext_noop('Traditional Chinese')),
)
@@ -485,6 +485,18 @@
'name': 'Simplified Chinese',
'name_local': '简体中文',
},
+ 'zh-hans': {
+ 'bidi': False,
+ 'code': 'zh-hans',
+ 'name': 'Simplified Chinese',
+ 'name_local': '简体中文',
+ },
+ 'zh-hant': {
+ 'bidi': False,
+ 'code': 'zh-hant',
+ 'name': 'Traditional Chinese',
+ 'name_local': '繁體中文',
+ },
'zh-tw': {
'bidi': False,
'code': 'zh-tw',
@@ -1,5 +1,8 @@
# This file is distributed under the same license as the Django package.
#
+# This is the *old* Simplified Chinese translation of Django
+# For future updates please use the translation in the "zh_Hans" directory.
+#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011.
# Kevin Shi <leiarix@gmail.com>, 2012.
Binary file not shown.
Oops, something went wrong.

3 comments on commit c0a2388

@bmispelon
Member

This commit introduced two test failures in i18n.tests.MiscTests.

@Bouke
Contributor
Bouke commented on c0a2388 Nov 5, 2013

I assume you've fixed those in bdca494?

@bmispelon
Member

I only fixed the python3 incompatibility. The two tests I mentionned are still broken (from what I understand they expect zh-cn which has been replaced).

Please sign in to comment.