Browse Source

Added Uyghur language.

Azat 1 year ago
parent
commit
d25f389211

+ 2 - 1
django/conf/global_settings.py

@@ -141,6 +141,7 @@ LANGUAGES = [
     ("tr", gettext_noop("Turkish")),
     ("tt", gettext_noop("Tatar")),
     ("udm", gettext_noop("Udmurt")),
+    ("ug", gettext_noop("Uyghur")),
     ("uk", gettext_noop("Ukrainian")),
     ("ur", gettext_noop("Urdu")),
     ("uz", gettext_noop("Uzbek")),
@@ -150,7 +151,7 @@ LANGUAGES = [
 ]
 
 # Languages using BiDi (right-to-left) layout
-LANGUAGES_BIDI = ["he", "ar", "ar-dz", "ckb", "fa", "ur"]
+LANGUAGES_BIDI = ["he", "ar", "ar-dz", "ckb", "fa", "ug", "ur"]
 
 # If you set this to False, Django will make some optimizations so as not
 # to load the internationalization machinery.

+ 6 - 0
django/conf/locale/__init__.py

@@ -566,6 +566,12 @@ LANG_INFO = {
         "name": "Udmurt",
         "name_local": "Удмурт",
     },
+    "ug": {
+        "bidi": True,
+        "code": "ug",
+        "name": "Uyghur",
+        "name_local": "ئۇيغۇرچە",
+    },
     "uk": {
         "bidi": False,
         "code": "uk",

+ 4 - 0
django/conf/locale/en/LC_MESSAGES/django.po

@@ -382,6 +382,10 @@ msgstr ""
 msgid "Udmurt"
 msgstr ""
 
+#: conf/global_settings.py:148
+msgid "Uyghur"
+msgstr ""
+
 #: conf/global_settings.py:149
 msgid "Ukrainian"
 msgstr ""

+ 0 - 0
django/conf/locale/ug/__init__.py


+ 14 - 0
django/conf/locale/ug/formats.py

@@ -0,0 +1,14 @@
+# This file is distributed under the same license as the Django package.
+#
+# The *_FORMAT strings use the Django date format syntax,
+# see https://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
+DATE_FORMAT = "j F Y"
+TIME_FORMAT = "G:i"
+YEAR_MONTH_FORMAT = "F Y"
+MONTH_DAY_FORMAT = "j F"
+SHORT_DATE_FORMAT = "Y/m/d"
+SHORT_DATETIME_FORMAT = "Y/m/d G:i"
+FIRST_DAY_OF_WEEK = 1
+DECIMAL_SEPARATOR = "."
+THOUSAND_SEPARATOR = ","
+NUMBER_GROUPING = 3

+ 1 - 1
docs/releases/5.0.txt

@@ -326,7 +326,7 @@ Generic Views
 Internationalization
 ~~~~~~~~~~~~~~~~~~~~
 
-* ...
+* Added support and translations for the Uyghur language.
 
 Logging
 ~~~~~~~

+ 1 - 0
docs/spelling_wordlist

@@ -587,6 +587,7 @@ util
 utils
 Uvicorn
 uWSGI
+Uyghur
 validator
 validators
 variadic