diff --git a/django/conf/global_settings.py b/django/conf/global_settings.py index 5b15d9617d..01f9b57fb2 100644 --- a/django/conf/global_settings.py +++ b/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. diff --git a/django/conf/locale/__init__.py b/django/conf/locale/__init__.py index c679ec3a54..1b21ffd1f1 100644 --- a/django/conf/locale/__init__.py +++ b/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", diff --git a/django/conf/locale/en/LC_MESSAGES/django.po b/django/conf/locale/en/LC_MESSAGES/django.po index a89e2e0ae7..ad1de990fc 100644 --- a/django/conf/locale/en/LC_MESSAGES/django.po +++ b/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 "" diff --git a/django/conf/locale/ug/__init__.py b/django/conf/locale/ug/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/django/conf/locale/ug/formats.py b/django/conf/locale/ug/formats.py new file mode 100644 index 0000000000..92f01342e9 --- /dev/null +++ b/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 diff --git a/docs/releases/5.0.txt b/docs/releases/5.0.txt index de76d9e4c4..dc31aa703a 100644 --- a/docs/releases/5.0.txt +++ b/docs/releases/5.0.txt @@ -326,7 +326,7 @@ Generic Views Internationalization ~~~~~~~~~~~~~~~~~~~~ -* ... +* Added support and translations for the Uyghur language. Logging ~~~~~~~ diff --git a/docs/spelling_wordlist b/docs/spelling_wordlist index bdcbac4793..18d01c7e7c 100644 --- a/docs/spelling_wordlist +++ b/docs/spelling_wordlist @@ -587,6 +587,7 @@ util utils Uvicorn uWSGI +Uyghur validator validators variadic