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 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 @@ -58,6 +58,10 @@ msgstr "" 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