Added support for the Tajik language.

Thanks Sirius Sufiew for contributing that support.
This commit is contained in:
Claude Paroz 2020-05-15 20:31:23 +02:00
parent 9e8edc1e55
commit db8268bce6
7 changed files with 46 additions and 1 deletions

View File

@ -132,6 +132,7 @@ LANGUAGES = [
('sw', gettext_noop('Swahili')),
('ta', gettext_noop('Tamil')),
('te', gettext_noop('Telugu')),
('tg', gettext_noop('Tajik')),
('th', gettext_noop('Thai')),
('tr', gettext_noop('Turkish')),
('tt', gettext_noop('Tatar')),

View File

@ -512,6 +512,12 @@ LANG_INFO = {
'name': 'Telugu',
'name_local': 'తెలుగు',
},
'tg': {
'bidi': False,
'code': 'tg',
'name': 'Tajik',
'name_local': 'тоҷикӣ',
},
'th': {
'bidi': False,
'code': 'th',

View File

@ -346,6 +346,10 @@ msgstr ""
msgid "Telugu"
msgstr ""
#: conf/global_settings.py:133
msgid "Tajik"
msgstr ""
#: conf/global_settings.py:134
msgid "Thai"
msgstr ""

View File

View File

@ -0,0 +1,32 @@
# 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 E Y г.'
TIME_FORMAT = 'G:i'
DATETIME_FORMAT = 'j E Y г. G:i'
YEAR_MONTH_FORMAT = 'F Y г.'
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'd.m.Y'
SHORT_DATETIME_FORMAT = 'd.m.Y H:i'
FIRST_DAY_OF_WEEK = 1 # Monday
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see https://docs.python.org/library/datetime.html#strftime-strptime-behavior
DATE_INPUT_FORMATS = [
'%d.%m.%Y', # '25.10.2006'
'%d.%m.%y', # '25.10.06'
]
DATETIME_INPUT_FORMATS = [
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
'%d.%m.%Y', # '25.10.2006'
'%d.%m.%y %H:%M:%S', # '25.10.06 14:30:59'
'%d.%m.%y %H:%M:%S.%f', # '25.10.06 14:30:59.000200'
'%d.%m.%y %H:%M', # '25.10.06 14:30'
'%d.%m.%y', # '25.10.06'
]
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
NUMBER_GROUPING = 3

View File

@ -296,7 +296,8 @@ Internationalization
(string) value to explicitly state that the cookie is sent with all same-site
and cross-site requests.
* Added support and translations for the Algerian Arabic and Kyrgyz languages.
* Added support and translations for the Algerian Arabic, Kyrgyz, and Tajik
languages.
Management Commands
~~~~~~~~~~~~~~~~~~~

View File

@ -661,6 +661,7 @@ systemwide
tablespace
tablespaces
tagline
Tajik
tarball
tarballs
teardown