summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Patrick Prenis <patrickprenice@gmail.com>2025-09-13 10:13:46 -0500
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2025-09-23 09:14:27 +0200
commit5d00bbd41ddd4f4eba6fda30f82803b5d7fac083 (patch)
tree76d596958057eb8e15e4f6594295508476d946e6
parenta68a34210a6e36f831ec13984da2b4451f2546fe (diff)
[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
-rw-r--r--django/conf/global_settings.py1
-rw-r--r--django/conf/locale/__init__.py6
-rw-r--r--django/conf/locale/en/LC_MESSAGES/django.po4
-rw-r--r--django/conf/locale/ht/__init__.py0
-rw-r--r--django/conf/locale/ht/formats.py48
-rw-r--r--docs/releases/6.0.txt5
6 files changed, 64 insertions, 0 deletions
diff --git a/django/conf/global_settings.py b/django/conf/global_settings.py
index 72f84dd6af..72c376dd78 100644
--- a/django/conf/global_settings.py
+++ b/django/conf/global_settings.py
@@ -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")),
diff --git a/django/conf/locale/__init__.py b/django/conf/locale/__init__.py
index 04962042b3..41dee940f3 100644
--- a/django/conf/locale/__init__.py
+++ b/django/conf/locale/__init__.py
@@ -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",
diff --git a/django/conf/locale/en/LC_MESSAGES/django.po b/django/conf/locale/en/LC_MESSAGES/django.po
index da1bef215d..4d4ee487f6 100644
--- a/django/conf/locale/en/LC_MESSAGES/django.po
+++ b/django/conf/locale/en/LC_MESSAGES/django.po
@@ -179,6 +179,10 @@ msgid "Upper Sorbian"
msgstr ""
#: conf/global_settings.py:95
+msgid "Haitian Creole"
+msgstr ""
+
+#: conf/global_settings.py:95
msgid "Hungarian"
msgstr ""
diff --git a/django/conf/locale/ht/__init__.py b/django/conf/locale/ht/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/django/conf/locale/ht/__init__.py
diff --git a/django/conf/locale/ht/formats.py b/django/conf/locale/ht/formats.py
new file mode 100644
index 0000000000..1a1c70f395
--- /dev/null
+++ b/django/conf/locale/ht/formats.py
@@ -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
diff --git a/docs/releases/6.0.txt b/docs/releases/6.0.txt
index 268d7a38c0..e1cdc7fc67 100644
--- a/docs/releases/6.0.txt
+++ b/docs/releases/6.0.txt
@@ -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
~~~~~~~~~~~~~~~~~~~