Opened 3 months ago

Closed 6 weeks ago

#31268 closed Cleanup/optimization (fixed)

Update Algerian Arabic (ar_DZ) locale formats.

Reported by: infosrabah Owned by: infosrabah
Component: Internationalization Version: master
Severity: Normal Keywords: Date, Time, Datetime, ar, Algeria, DZ
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by felixxm)

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'.

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.

Attachments (1)

formats.py (949 bytes) - added by infosrabah 3 months ago.
correct format ar-DZ locale for Algeria country

Download all attachments as: .zip

Change History (6)

Changed 3 months ago by infosrabah

Attachment: formats.py added

correct format ar-DZ locale for Algeria country

comment:1 Changed 3 months ago by felixxm

Component: UncategorizedInternationalization
Description: modified (diff)
Owner: changed from nobody to infosrabah
Status: newassigned
Summary: Algerian Arabic (ar_DZ) locale formatsUpdate Algerian Arabic (ar_DZ) locale formats.
Triage Stage: UnreviewedAccepted
Version: 3.0master

comment:2 Changed 3 months ago by felixxm

Has patch: unset

comment:3 Changed 2 months ago by felixxm

Has patch: set

comment:4 Changed 2 months ago by felixxm

Description: modified (diff)

comment:5 Changed 6 weeks ago by Mariusz Felisiak <felisiak.mariusz@…>

Resolution: fixed
Status: assignedclosed

In 25afe59:

Fixed #31268 -- Updated Algerian Arabic (ar_DZ) locale formats.

Note: See TracTickets for help on using tickets.
Back to Top