mirror of
https://github.com/django/django.git
synced 2025-09-24 23:49:12 +00:00
Fixed #36609 -- Added Haitian Creole (ht) language.
Thanks Rebecca Conley for the review. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
This commit is contained in:
parent
30e9b6f6ad
commit
9af8225117
@ -92,6 +92,7 @@ LANGUAGES = [
|
||||
("hi", gettext_noop("Hindi")),
|
||||
("hr", gettext_noop("Croatian")),
|
||||
("hsb", gettext_noop("Upper Sorbian")),
|
||||
("ht", gettext_noop("Haitian Creole")),
|
||||
("hu", gettext_noop("Hungarian")),
|
||||
("hy", gettext_noop("Armenian")),
|
||||
("ia", gettext_noop("Interlingua")),
|
||||
|
@ -255,6 +255,12 @@ LANG_INFO = {
|
||||
"name": "Upper Sorbian",
|
||||
"name_local": "hornjoserbsce",
|
||||
},
|
||||
"ht": {
|
||||
"bidi": False,
|
||||
"code": "ht",
|
||||
"name": "Haitian Creole",
|
||||
"name_local": "Kreyòl Ayisyen",
|
||||
},
|
||||
"hu": {
|
||||
"bidi": False,
|
||||
"code": "hu",
|
||||
|
@ -178,6 +178,10 @@ msgstr ""
|
||||
msgid "Upper Sorbian"
|
||||
msgstr ""
|
||||
|
||||
#: conf/global_settings.py:95
|
||||
msgid "Haitian Creole"
|
||||
msgstr ""
|
||||
|
||||
#: conf/global_settings.py:95
|
||||
msgid "Hungarian"
|
||||
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
|
||||
API.
|
||||
|
||||
Internationalization
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Added support and translations for the Haitian Creole language.
|
||||
|
||||
Management Commands
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user