#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 <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.f6cec24cb1c611f56161e37a4024632f%40djangoproject.com.

Reply via email to