[Django] #31268: Algerian Arabic (ar_DZ) locale formats

11 views
Skip to first unread message

Django

unread,
Feb 12, 2020, 6:34:00 PM2/12/20
to django-...@googlegroups.com
#31268: Algerian Arabic (ar_DZ) locale formats
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
infosrabah |
Type: | Status: new
Cleanup/optimization |
Component: | Version: 3.0
Uncategorized | Keywords: Date, Time,
Severity: Normal | Datetime, ar, Algeria, DZ
Triage Stage: | Has patch: 1
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Hi,

Based on the way date are represented in algeria, the actual
SHORT_DATE_FORMAT is 'd/m/Y' but he correct foramt is 'Y/m/d'.
The actual locale ar-DZ formats are also missing (pull request pending )
:

SHORT_DATE_FORMAT = 'Y/m/d'


DATE_INPUT_FORMATS = [
'%Y/%m/%d', '%y/%m/%d', # '2006/10/25', '06/10/25'
]
TIME_INPUT_FORMATS = [
'%H:%M', # '14:30
'%H:%M:%S', # '14:30:59'
]
DATETIME_INPUT_FORMATS = [
'%Y/%m/%d %H:%M', # '2006/10/25 14:30'
'%Y/%m/%d %H:%M:%S', # '2006/10/25 14:30:59'
]

NUMBER_GROUPING = 3
-----------
The actual Date format are not the exact représentation of a dates in the
country.

--
Ticket URL: <https://code.djangoproject.com/ticket/31268>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 12, 2020, 6:37:32 PM2/12/20
to django-...@googlegroups.com
#31268: Algerian Arabic (ar_DZ) locale formats
-------------------------------------+-------------------------------------
Reporter: infosrabah | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Uncategorized | Version: 3.0
Severity: Normal | Resolution:
Keywords: Date, Time, | Triage Stage:
Datetime, ar, Algeria, DZ | Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by infosrabah):

* Attachment "formats.py" added.

correct format ar-DZ locale for Algeria country

Django

unread,
Feb 13, 2020, 1:09:38 AM2/13/20
to django-...@googlegroups.com
#31268: Update Algerian Arabic (ar_DZ) locale formats.
-------------------------------------+-------------------------------------
Reporter: infosrabah | Owner:
Type: | infosrabah
Cleanup/optimization | Status: assigned
Component: | Version: master
Internationalization |
Severity: Normal | Resolution:
Keywords: Date, Time, | Triage Stage: Accepted
Datetime, ar, Algeria, DZ |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):

* status: new => assigned
* component: Uncategorized => Internationalization
* version: 3.0 => master
* owner: nobody => infosrabah
* stage: Unreviewed => Accepted


Old description:

> Hi,
>
> Based on the way date are represented in algeria, the actual
> SHORT_DATE_FORMAT is 'd/m/Y' but he correct foramt is 'Y/m/d'.
> The actual locale ar-DZ formats are also missing (pull request pending )
> :
>
> SHORT_DATE_FORMAT = 'Y/m/d'
>

> DATE_INPUT_FORMATS = [
> '%Y/%m/%d', '%y/%m/%d', # '2006/10/25', '06/10/25'
> ]
> TIME_INPUT_FORMATS = [
> '%H:%M', # '14:30
> '%H:%M:%S', # '14:30:59'
> ]
> DATETIME_INPUT_FORMATS = [
> '%Y/%m/%d %H:%M', # '2006/10/25 14:30'
> '%Y/%m/%d %H:%M:%S', # '2006/10/25 14:30:59'
> ]
>
> NUMBER_GROUPING = 3
> -----------
> The actual Date format are not the exact représentation of a dates in the
> country.

New description:

Hi,

Based on the way date are represented in Algeria, the actual
`SHORT_DATE_FORMAT` is `'d/m/Y'` but the correct format is `'Y/m/d'`.


The actual locale ar-DZ formats are also missing (pull request pending):

{{{
SHORT_DATE_FORMAT = 'Y/m/d'

DATE_INPUT_FORMATS = [
'%Y/%m/%d', '%y/%m/%d', # '2006/10/25', '06/10/25'
]
TIME_INPUT_FORMATS = [
'%H:%M', # '14:30
'%H:%M:%S', # '14:30:59'
]
DATETIME_INPUT_FORMATS = [
'%Y/%m/%d %H:%M', # '2006/10/25 14:30'
'%Y/%m/%d %H:%M:%S', # '2006/10/25 14:30:59'
]

NUMBER_GROUPING = 3
}}}
-----------
The actual Date format are not the exact representation of a dates in the
country.
-----------

Even if most RTL other countries are using or still using `'d‏/m‏/Y '`,
Algeria is not. For every date on any resource (News, Official
communications, News paper) that using Arabic as a language, the Date
format is `'Y/m/d'`.

[https://en.wikipedia.org/wiki/Algeria The Wikipedia] describes the French
language in Algeria (`fr-DZ`) LTR, not the Arabic (`ar-DZ`) that we are
talking about here.

--

Comment:

[https://github.com/django/django/pull/12422 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/31268#comment:1>

Django

unread,
Feb 17, 2020, 3:18:27 AM2/17/20
to django-...@googlegroups.com
#31268: Update Algerian Arabic (ar_DZ) locale formats.
-------------------------------------+-------------------------------------
Reporter: infosrabah | Owner:
Type: | infosrabah
Cleanup/optimization | Status: assigned
Component: | Version: master
Internationalization |
Severity: Normal | Resolution:
Keywords: Date, Time, | Triage Stage: Accepted
Datetime, ar, Algeria, DZ |
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):

* has_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/31268#comment:2>

Django

unread,
Mar 26, 2020, 1:59:45 AM3/26/20
to django-...@googlegroups.com
#31268: Update Algerian Arabic (ar_DZ) locale formats.
-------------------------------------+-------------------------------------
Reporter: infosrabah | Owner:
Type: | infosrabah
Cleanup/optimization | Status: assigned
Component: | Version: master
Internationalization |
Severity: Normal | Resolution:
Keywords: Date, Time, | Triage Stage: Accepted
Datetime, ar, Algeria, DZ |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/12625 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/31268#comment:3>

Django

unread,
Mar 27, 2020, 1:51:40 AM3/27/20
to django-...@googlegroups.com
#31268: Update Algerian Arabic (ar_DZ) locale formats.
-------------------------------------+-------------------------------------
Reporter: infosrabah | Owner:
Type: | infosrabah
Cleanup/optimization | Status: assigned
Component: | Version: master
Internationalization |
Severity: Normal | Resolution:
Keywords: Date, Time, | Triage Stage: Accepted
Datetime, ar, Algeria, DZ |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by felixxm:

Old description:

> Hi,
>
> Based on the way date are represented in Algeria, the actual
> `SHORT_DATE_FORMAT` is `'d/m/Y'` but the correct format is `'Y/m/d'`.


> The actual locale ar-DZ formats are also missing (pull request pending):

> {{{


> SHORT_DATE_FORMAT = 'Y/m/d'
>
> DATE_INPUT_FORMATS = [
> '%Y/%m/%d', '%y/%m/%d', # '2006/10/25', '06/10/25'
> ]
> TIME_INPUT_FORMATS = [
> '%H:%M', # '14:30
> '%H:%M:%S', # '14:30:59'
> ]
> DATETIME_INPUT_FORMATS = [
> '%Y/%m/%d %H:%M', # '2006/10/25 14:30'
> '%Y/%m/%d %H:%M:%S', # '2006/10/25 14:30:59'
> ]
>
> NUMBER_GROUPING = 3
> }}}
> -----------

> The actual Date format are not the exact representation of a dates in the
> country.


> -----------
>
> Even if most RTL other countries are using or still using `'d‏/m‏/Y '`,
> Algeria is not. For every date on any resource (News, Official
> communications, News paper) that using Arabic as a language, the Date
> format is `'Y/m/d'`.
>
> [https://en.wikipedia.org/wiki/Algeria The Wikipedia] describes the
> French language in Algeria (`fr-DZ`) LTR, not the Arabic (`ar-DZ`) that
> we are talking about here.

New description:

Based on the way date are represented in Algeria, the actual
`SHORT_DATE_FORMAT` is `'d/m/Y'` but the correct format is `'j F Y'`.


The actual locale `ar-DZ` formats are also missing (pull request pending):

{{{
SHORT_DATE_FORMAT = 'j F Y'
SHORT_DATETIME_FORMAT = 'j F Y H:i'

DATE_INPUT_FORMATS = [
'%Y/%m/%d', # '2006/10/25'


]
TIME_INPUT_FORMATS = [
'%H:%M', # '14:30
'%H:%M:%S', # '14:30:59'
]
DATETIME_INPUT_FORMATS = [
'%Y/%m/%d %H:%M', # '2006/10/25 14:30'
'%Y/%m/%d %H:%M:%S', # '2006/10/25 14:30:59'
]

NUMBER_GROUPING = 3
}}}
-----------
The actual Date format are not the exact representation of a dates in the
country.
-----------

Even if most RTL other countries are using or still using `'d‏/m‏/Y '`,
Algeria is not. For every date on any resource (News, Official
communications, News paper) that using Arabic as a language, the Date

format is `'j F Y'`.

[https://en.wikipedia.org/wiki/Algeria The Wikipedia] describes the French
language in Algeria (`fr-DZ`) LTR, not the Arabic (`ar-DZ`) that we are
talking about here.

Abbreviations of months don't exist in Algerian Arabic that's why we need
to use `N` in short formats instead of `F`.

--

--
Ticket URL: <https://code.djangoproject.com/ticket/31268#comment:4>

Django

unread,
Apr 15, 2020, 4:13:53 AM4/15/20
to django-...@googlegroups.com
#31268: Update Algerian Arabic (ar_DZ) locale formats.
-------------------------------------+-------------------------------------
Reporter: infosrabah | Owner:
Type: | infosrabah
Cleanup/optimization | Status: closed
Component: | Version: master
Internationalization |
Severity: Normal | Resolution: fixed

Keywords: Date, Time, | Triage Stage: Accepted
Datetime, ar, Algeria, DZ |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"25afe59d342ac0fb77f523b8da42aa166c6e1503" 25afe59]:
{{{
#!CommitTicketReference repository=""
revision="25afe59d342ac0fb77f523b8da42aa166c6e1503"
Fixed #31268 -- Updated Algerian Arabic (ar_DZ) locale formats.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/31268#comment:5>

Reply all
Reply to author
Forward
0 new messages