summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRabah Saadi <infosrabah@gmail.com>2019-12-13 09:20:27 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-12-14 16:26:31 +0100
commit5b7450080fb87391325528a7f215ce823982e6da (patch)
tree4ebb009d3505740049bb3c4e858955459009df71
parent738e9e615dc81b561c9fb01439119f4475c2e25b (diff)
Added Algerian Arabic language.
-rw-r--r--django/conf/global_settings.py3
-rw-r--r--django/conf/locale/__init__.py6
-rw-r--r--django/conf/locale/ar_DZ/__init__.py0
-rw-r--r--django/conf/locale/ar_DZ/formats.py21
-rw-r--r--django/conf/locale/en/LC_MESSAGES/django.po6
-rw-r--r--docs/releases/3.1.txt2
6 files changed, 36 insertions, 2 deletions
diff --git a/django/conf/global_settings.py b/django/conf/global_settings.py
index f985302ce7..729c38d7b0 100644
--- a/django/conf/global_settings.py
+++ b/django/conf/global_settings.py
@@ -51,6 +51,7 @@ LANGUAGE_CODE = 'en-us'
LANGUAGES = [
('af', gettext_noop('Afrikaans')),
('ar', gettext_noop('Arabic')),
+ ('ar-dz', gettext_noop('Algerian Arabic')),
('ast', gettext_noop('Asturian')),
('az', gettext_noop('Azerbaijani')),
('bg', gettext_noop('Bulgarian')),
@@ -143,7 +144,7 @@ LANGUAGES = [
]
# Languages using BiDi (right-to-left) layout
-LANGUAGES_BIDI = ["he", "ar", "fa", "ur"]
+LANGUAGES_BIDI = ["he", "ar", "ar-dz", "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 6af72b6c33..256ae01671 100644
--- a/django/conf/locale/__init__.py
+++ b/django/conf/locale/__init__.py
@@ -20,6 +20,12 @@ LANG_INFO = {
'name': 'Arabic',
'name_local': 'العربيّة',
},
+ 'ar-dz': {
+ 'bidi': True,
+ 'code': 'ar-dz',
+ 'name': 'Algerian Arabic',
+ 'name_local': 'العربية الجزائرية',
+ },
'ast': {
'bidi': False,
'code': 'ast',
diff --git a/django/conf/locale/ar_DZ/__init__.py b/django/conf/locale/ar_DZ/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/django/conf/locale/ar_DZ/__init__.py
diff --git a/django/conf/locale/ar_DZ/formats.py b/django/conf/locale/ar_DZ/formats.py
new file mode 100644
index 0000000000..23b1c20349
--- /dev/null
+++ b/django/conf/locale/ar_DZ/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' # 04 نوفمبر 2020
+TIME_FORMAT = 'g:i A'
+# DATETIME_FORMAT =
+YEAR_MONTH_FORMAT = 'F Y'
+MONTH_DAY_FORMAT = 'j F'
+SHORT_DATE_FORMAT = 'd‏/m‏/Y'
+# SHORT_DATETIME_FORMAT =
+FIRST_DAY_OF_WEEK = 0 # Sunday
+
+# 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 = 3
diff --git a/django/conf/locale/en/LC_MESSAGES/django.po b/django/conf/locale/en/LC_MESSAGES/django.po
index a980f47b45..3ff6fd69c1 100644
--- a/django/conf/locale/en/LC_MESSAGES/django.po
+++ b/django/conf/locale/en/LC_MESSAGES/django.po
@@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Django\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-09-27 22:40+0200\n"
+"POT-Creation-Date: 2019-12-13 09:47+0200\n"
"PO-Revision-Date: 2010-05-13 15:35+0200\n"
"Last-Translator: Django team\n"
"Language-Team: English <en@li.org>\n"
@@ -22,6 +22,10 @@ msgstr ""
msgid "Arabic"
msgstr ""
+#: conf/global_settings.py:53
+msgid "Algerian Arabic"
+msgstr ""
+
#: conf/global_settings.py:54
msgid "Asturian"
msgstr ""
diff --git a/docs/releases/3.1.txt b/docs/releases/3.1.txt
index 2e15f62860..b98d770ac5 100644
--- a/docs/releases/3.1.txt
+++ b/docs/releases/3.1.txt
@@ -181,6 +181,8 @@ Internationalization
(string) value to explicitly state that the cookie is sent with all same-site
and cross-site requests.
+* Added support and translations for the Algerian Arabic language.
+
Logging
~~~~~~~