Added Uyghur language.

This commit is contained in:
Azat 2023-08-12 12:07:34 +03:00 committed by Mariusz Felisiak
parent 59f4754704
commit d25f389211
7 changed files with 28 additions and 2 deletions

View File

@ -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.

View File

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

View File

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

View File

View File

@ -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

View File

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

View File

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