summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSwara <swara09@gmail.com>2022-08-13 11:36:15 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-08-30 11:56:11 +0200
commit08303f4f06ae25c1bb4d857de1beacceb9dd18fd (patch)
tree544ca843d06a88c9c015e9b96d2d724313dc193d
parentde6c9c70549010fc39509f9ef3f6a62ada870318 (diff)
Added Central Kurdish (Sorani) language.
-rw-r--r--django/conf/global_settings.py3
-rw-r--r--django/conf/locale/__init__.py6
-rw-r--r--django/conf/locale/ckb/__init__.py0
-rw-r--r--django/conf/locale/ckb/formats.py21
-rw-r--r--django/conf/locale/en/LC_MESSAGES/django.po4
-rw-r--r--docs/releases/4.2.txt2
-rw-r--r--docs/spelling_wordlist1
7 files changed, 35 insertions, 2 deletions
diff --git a/django/conf/global_settings.py b/django/conf/global_settings.py
index 40b34bb71c..aff2a4d24d 100644
--- a/django/conf/global_settings.py
+++ b/django/conf/global_settings.py
@@ -65,6 +65,7 @@ LANGUAGES = [
("br", gettext_noop("Breton")),
("bs", gettext_noop("Bosnian")),
("ca", gettext_noop("Catalan")),
+ ("ckb", gettext_noop("Central Kurdish (Sorani)")),
("cs", gettext_noop("Czech")),
("cy", gettext_noop("Welsh")),
("da", gettext_noop("Danish")),
@@ -154,7 +155,7 @@ LANGUAGES = [
]
# Languages using BiDi (right-to-left) layout
-LANGUAGES_BIDI = ["he", "ar", "ar-dz", "fa", "ur"]
+LANGUAGES_BIDI = ["he", "ar", "ar-dz", "ckb", "fa", "ur"]
# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
diff --git a/django/conf/locale/__init__.py b/django/conf/locale/__init__.py
index a18d5775d5..c679ec3a54 100644
--- a/django/conf/locale/__init__.py
+++ b/django/conf/locale/__init__.py
@@ -74,6 +74,12 @@ LANG_INFO = {
"name": "Catalan",
"name_local": "català",
},
+ "ckb": {
+ "bidi": True,
+ "code": "ckb",
+ "name": "Central Kurdish (Sorani)",
+ "name_local": "کوردی",
+ },
"cs": {
"bidi": False,
"code": "cs",
diff --git a/django/conf/locale/ckb/__init__.py b/django/conf/locale/ckb/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/django/conf/locale/ckb/__init__.py
diff --git a/django/conf/locale/ckb/formats.py b/django/conf/locale/ckb/formats.py
new file mode 100644
index 0000000000..162c840d33
--- /dev/null
+++ b/django/conf/locale/ckb/formats.py
@@ -0,0 +1,21 @@
+# 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 F Y"
+TIME_FORMAT = "G:i"
+DATETIME_FORMAT = "j F Y، کاتژمێر G:i"
+YEAR_MONTH_FORMAT = "F Y"
+MONTH_DAY_FORMAT = "j F"
+SHORT_DATE_FORMAT = "Y/n/j"
+SHORT_DATETIME_FORMAT = "Y/n/j،‏ G:i"
+FIRST_DAY_OF_WEEK = 6
+
+# The *_INPUT_FORMATS strings use the Python strftime format syntax,
+# see https://docs.python.org/library/datetime.html#strftime-strptime-behavior
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
+DECIMAL_SEPARATOR = "."
+THOUSAND_SEPARATOR = ","
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/en/LC_MESSAGES/django.po b/django/conf/locale/en/LC_MESSAGES/django.po
index 6e76729680..319cfbd40d 100644
--- a/django/conf/locale/en/LC_MESSAGES/django.po
+++ b/django/conf/locale/en/LC_MESSAGES/django.po
@@ -59,6 +59,10 @@ msgid "Catalan"
msgstr ""
#: conf/global_settings.py:68
+msgid "Central Kurdish (Sorani)"
+msgstr ""
+
+#: conf/global_settings.py:68
msgid "Czech"
msgstr ""
diff --git a/docs/releases/4.2.txt b/docs/releases/4.2.txt
index e4961fba2f..588d466a66 100644
--- a/docs/releases/4.2.txt
+++ b/docs/releases/4.2.txt
@@ -173,7 +173,7 @@ Generic Views
Internationalization
~~~~~~~~~~~~~~~~~~~~
-* ...
+* Added support and translations for the Central Kurdish (Sorani) language.
Logging
~~~~~~~
diff --git a/docs/spelling_wordlist b/docs/spelling_wordlist
index fb3686f43c..0b9180fd35 100644
--- a/docs/spelling_wordlist
+++ b/docs/spelling_wordlist
@@ -460,6 +460,7 @@ sitewide
sliceable
SMTP
solaris
+Sorani
sortable
Spectre
Springmeyer