mirror of https://github.com/django/django.git
[3.1.x] Added support for the Tajik language.
Thanks Sirius Sufiew for contributing that support.
Backport of db8268bce6
from master
This commit is contained in:
parent
42f5f2d76b
commit
6f526cb203
|
@ -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')),
|
||||
|
|
|
@ -512,6 +512,12 @@ LANG_INFO = {
|
|||
'name': 'Telugu',
|
||||
'name_local': 'తెలుగు',
|
||||
},
|
||||
'tg': {
|
||||
'bidi': False,
|
||||
'code': 'tg',
|
||||
'name': 'Tajik',
|
||||
'name_local': 'тоҷикӣ',
|
||||
},
|
||||
'th': {
|
||||
'bidi': False,
|
||||
'code': 'th',
|
||||
|
|
|
@ -346,6 +346,10 @@ msgstr ""
|
|||
msgid "Telugu"
|
||||
msgstr ""
|
||||
|
||||
#: conf/global_settings.py:133
|
||||
msgid "Tajik"
|
||||
msgstr ""
|
||||
|
||||
#: conf/global_settings.py:134
|
||||
msgid "Thai"
|
||||
msgstr ""
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
@ -662,6 +662,7 @@ systemwide
|
|||
tablespace
|
||||
tablespaces
|
||||
tagline
|
||||
Tajik
|
||||
tarball
|
||||
tarballs
|
||||
teardown
|
||||
|
|
Loading…
Reference in New Issue