Added Algerian Arabic language.

This commit is contained in:
Rabah Saadi 2019-12-13 09:20:27 +01:00 committed by Mariusz Felisiak
parent 738e9e615d
commit 5b7450080f
6 changed files with 36 additions and 2 deletions

View File

@ -51,6 +51,7 @@ LANGUAGE_CODE = 'en-us'
LANGUAGES = [ LANGUAGES = [
('af', gettext_noop('Afrikaans')), ('af', gettext_noop('Afrikaans')),
('ar', gettext_noop('Arabic')), ('ar', gettext_noop('Arabic')),
('ar-dz', gettext_noop('Algerian Arabic')),
('ast', gettext_noop('Asturian')), ('ast', gettext_noop('Asturian')),
('az', gettext_noop('Azerbaijani')), ('az', gettext_noop('Azerbaijani')),
('bg', gettext_noop('Bulgarian')), ('bg', gettext_noop('Bulgarian')),
@ -143,7 +144,7 @@ LANGUAGES = [
] ]
# Languages using BiDi (right-to-left) layout # 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 # If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery. # to load the internationalization machinery.

View File

@ -20,6 +20,12 @@ LANG_INFO = {
'name': 'Arabic', 'name': 'Arabic',
'name_local': 'العربيّة', 'name_local': 'العربيّة',
}, },
'ar-dz': {
'bidi': True,
'code': 'ar-dz',
'name': 'Algerian Arabic',
'name_local': 'العربية الجزائرية',
},
'ast': { 'ast': {
'bidi': False, 'bidi': False,
'code': 'ast', 'code': 'ast',

View File

View File

@ -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

View File

@ -4,7 +4,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Django\n" "Project-Id-Version: Django\n"
"Report-Msgid-Bugs-To: \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" "PO-Revision-Date: 2010-05-13 15:35+0200\n"
"Last-Translator: Django team\n" "Last-Translator: Django team\n"
"Language-Team: English <en@li.org>\n" "Language-Team: English <en@li.org>\n"
@ -22,6 +22,10 @@ msgstr ""
msgid "Arabic" msgid "Arabic"
msgstr "" msgstr ""
#: conf/global_settings.py:53
msgid "Algerian Arabic"
msgstr ""
#: conf/global_settings.py:54 #: conf/global_settings.py:54
msgid "Asturian" msgid "Asturian"
msgstr "" msgstr ""

View File

@ -181,6 +181,8 @@ Internationalization
(string) value to explicitly state that the cookie is sent with all same-site (string) value to explicitly state that the cookie is sent with all same-site
and cross-site requests. and cross-site requests.
* Added support and translations for the Algerian Arabic language.
Logging Logging
~~~~~~~ ~~~~~~~