mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
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.
This commit is contained in:
@@ -476,6 +476,9 @@ these changes.
|
||||
|
||||
* The class ``django.utils.datastructures.MergeDict`` will be removed.
|
||||
|
||||
* The ``zh_CN`` and ``zh_TW`` language codes will be removed and have been
|
||||
replaced by the ``zh_Hans`` and ``zh_Hant`` language code respectively.
|
||||
|
||||
2.0
|
||||
---
|
||||
|
||||
|
||||
@@ -697,3 +697,11 @@ deprecated and will be removed in Django 1.9.
|
||||
arguments into a ``REQUEST`` property on ``WSGIRequest``. To merge
|
||||
dictionaries, use ``dict.update()`` instead. The class ``MergeDict`` is
|
||||
deprecated and will be removed in Django 1.9.
|
||||
|
||||
Language codes ``zh_CN`` and ``zh_TW``
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
The currently used language codes for Simplified Chinese ``zh_CN`` and
|
||||
Traditional Chinese ``zh_TW`` are deprecated and should be replaced by the
|
||||
recently introduced language codes ``zh_Hans`` and ``zh_Hant`` respectively.
|
||||
The deprecated language codes will be removed in Django 1.9.
|
||||
|
||||
Reference in New Issue
Block a user