[3.1.x] Added Kyrgyz language.

Thanks Soyuzbek orozbek uulu for contributing that support.
Backport of 3460ea49e8 from master
This commit is contained in:
Claude Paroz 2020-05-20 12:29:59 +02:00 committed by Mariusz Felisiak
parent d5231719e0
commit ff9cdb70cf
7 changed files with 46 additions and 2 deletions

View File

@ -103,6 +103,7 @@ LANGUAGES = [
('km', gettext_noop('Khmer')),
('kn', gettext_noop('Kannada')),
('ko', gettext_noop('Korean')),
('ky', gettext_noop('Kyrgyz')),
('lb', gettext_noop('Luxembourgish')),
('lt', gettext_noop('Lithuanian')),
('lv', gettext_noop('Latvian')),

View File

@ -332,6 +332,12 @@ LANG_INFO = {
'name': 'Korean',
'name_local': '한국어',
},
'ky': {
'bidi': False,
'code': 'ky',
'name': 'Kyrgyz',
'name_local': 'Кыргызча',
},
'lb': {
'bidi': False,
'code': 'lb',

View File

@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-11 20:56+0200\n"
"POT-Creation-Date: 2020-05-19 20:23+0200\n"
"PO-Revision-Date: 2010-05-13 15:35+0200\n"
"Last-Translator: Django team\n"
"Language-Team: English <en@li.org>\n"
@ -230,6 +230,10 @@ msgstr ""
msgid "Korean"
msgstr ""
#: conf/global_settings.py:106
msgid "Kyrgyz"
msgstr ""
#: conf/global_settings.py:106
msgid "Luxembourgish"
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

@ -292,7 +292,7 @@ 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 language.
* Added support and translations for the Algerian Arabic and Kyrgyz languages.
Management Commands
~~~~~~~~~~~~~~~~~~~

View File

@ -324,6 +324,7 @@ Koziarski
kwarg
kwargs
Kyngesburye
Kyrgyz
latin
lawrence
lexer