mirror of
https://github.com/django/django.git
synced 2025-09-25 07:59:11 +00:00
[6.0.x] Fixed #36609 -- Added Haitian Creole (ht) language.
Thanks Rebecca Conley for the review. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> Backport of 9af8225117bbc845a41ca27332c0ee1946322b90 from main
This commit is contained in:
parent
a68a34210a
commit
5d00bbd41d
@ -92,6 +92,7 @@ LANGUAGES = [
|
|||||||
("hi", gettext_noop("Hindi")),
|
("hi", gettext_noop("Hindi")),
|
||||||
("hr", gettext_noop("Croatian")),
|
("hr", gettext_noop("Croatian")),
|
||||||
("hsb", gettext_noop("Upper Sorbian")),
|
("hsb", gettext_noop("Upper Sorbian")),
|
||||||
|
("ht", gettext_noop("Haitian Creole")),
|
||||||
("hu", gettext_noop("Hungarian")),
|
("hu", gettext_noop("Hungarian")),
|
||||||
("hy", gettext_noop("Armenian")),
|
("hy", gettext_noop("Armenian")),
|
||||||
("ia", gettext_noop("Interlingua")),
|
("ia", gettext_noop("Interlingua")),
|
||||||
|
@ -255,6 +255,12 @@ LANG_INFO = {
|
|||||||
"name": "Upper Sorbian",
|
"name": "Upper Sorbian",
|
||||||
"name_local": "hornjoserbsce",
|
"name_local": "hornjoserbsce",
|
||||||
},
|
},
|
||||||
|
"ht": {
|
||||||
|
"bidi": False,
|
||||||
|
"code": "ht",
|
||||||
|
"name": "Haitian Creole",
|
||||||
|
"name_local": "Kreyòl Ayisyen",
|
||||||
|
},
|
||||||
"hu": {
|
"hu": {
|
||||||
"bidi": False,
|
"bidi": False,
|
||||||
"code": "hu",
|
"code": "hu",
|
||||||
|
@ -178,6 +178,10 @@ msgstr ""
|
|||||||
msgid "Upper Sorbian"
|
msgid "Upper Sorbian"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: conf/global_settings.py:95
|
||||||
|
msgid "Haitian Creole"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: conf/global_settings.py:95
|
#: conf/global_settings.py:95
|
||||||
msgid "Hungarian"
|
msgid "Hungarian"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
0
django/conf/locale/ht/__init__.py
Normal file
0
django/conf/locale/ht/__init__.py
Normal file
48
django/conf/locale/ht/formats.py
Normal file
48
django/conf/locale/ht/formats.py
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
# 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 = "N j, Y"
|
||||||
|
TIME_FORMAT = "P"
|
||||||
|
DATETIME_FORMAT = "N j, Y, P"
|
||||||
|
YEAR_MONTH_FORMAT = "F Y"
|
||||||
|
MONTH_DAY_FORMAT = "F j"
|
||||||
|
SHORT_DATE_FORMAT = "d/m/Y"
|
||||||
|
SHORT_DATETIME_FORMAT = "d/m/Y P"
|
||||||
|
FIRST_DAY_OF_WEEK = 0
|
||||||
|
|
||||||
|
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
|
||||||
|
# see https://docs.python.org/library/datetime.html#strftime-strptime-behavior
|
||||||
|
DATE_INPUT_FORMATS = [
|
||||||
|
"%Y-%m-%d", # '2006-10-25'
|
||||||
|
"%m/%d/%Y", # '10/25/2006'
|
||||||
|
"%m/%d/%y", # '10/25/06'
|
||||||
|
"%b %d %Y", # 'Oct 25 2006'
|
||||||
|
"%b %d, %Y", # 'Oct 25, 2006'
|
||||||
|
"%d %b %Y", # '25 Oct 2006'
|
||||||
|
"%d %b, %Y", # '25 Oct, 2006'
|
||||||
|
"%B %d %Y", # 'October 25 2006'
|
||||||
|
"%B %d, %Y", # 'October 25, 2006'
|
||||||
|
"%d %B %Y", # '25 October 2006'
|
||||||
|
"%d %B, %Y", # '25 October, 2006'
|
||||||
|
]
|
||||||
|
DATETIME_INPUT_FORMATS = [
|
||||||
|
"%Y-%m-%d %H:%M:%S", # '2006-10-25 14:30:59'
|
||||||
|
"%Y-%m-%d %H:%M:%S.%f", # '2006-10-25 14:30:59.000200'
|
||||||
|
"%Y-%m-%d %H:%M", # '2006-10-25 14:30'
|
||||||
|
"%m/%d/%Y %H:%M:%S", # '10/25/2006 14:30:59'
|
||||||
|
"%m/%d/%Y %H:%M:%S.%f", # '10/25/2006 14:30:59.000200'
|
||||||
|
"%m/%d/%Y %H:%M", # '10/25/2006 14:30'
|
||||||
|
"%m/%d/%y %H:%M:%S", # '10/25/06 14:30:59'
|
||||||
|
"%m/%d/%y %H:%M:%S.%f", # '10/25/06 14:30:59.000200'
|
||||||
|
"%m/%d/%y %H:%M", # '10/25/06 14:30'
|
||||||
|
]
|
||||||
|
TIME_INPUT_FORMATS = [
|
||||||
|
"%H:%M:%S", # '14:30:59'
|
||||||
|
"%H:%M:%S.%f", # '14:30:59.000200'
|
||||||
|
"%H:%M", # '14:30'
|
||||||
|
]
|
||||||
|
|
||||||
|
DECIMAL_SEPARATOR = ","
|
||||||
|
THOUSAND_SEPARATOR = "\xa0"
|
||||||
|
NUMBER_GROUPING = 3
|
@ -229,6 +229,11 @@ Email
|
|||||||
accepts a :class:`~email.message.MIMEPart` object from Python's modern email
|
accepts a :class:`~email.message.MIMEPart` object from Python's modern email
|
||||||
API.
|
API.
|
||||||
|
|
||||||
|
Internationalization
|
||||||
|
~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
* Added support and translations for the Haitian Creole language.
|
||||||
|
|
||||||
Management Commands
|
Management Commands
|
||||||
~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user