Opened 4 years ago

Last modified 4 years ago

#31268 closed Cleanup/optimization

Update Algerian Arabic (ar_DZ) locale formats. — at Version 1

Reported by: infosrabah Owned by: infosrabah
Component: Internationalization Version: dev
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 Mariusz Felisiak)

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

The Wikipedia describes the French language in Algeria (fr-DZ) LTR, not the Arabic (ar-DZ) that we are talking about here.

Change History (2)

by infosrabah, 4 years ago

Attachment: formats.py added

correct format ar-DZ locale for Algeria country

comment:1 by Mariusz Felisiak, 4 years ago

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
Note: See TracTickets for help on using tickets.
Back to Top