Opened 5 years ago
Closed 5 years ago
#31268 closed Cleanup/optimization (fixed)
Update Algerian Arabic (ar_DZ) locale formats.
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 )
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)
Change History (6)
by , 5 years ago
Attachment: | formats.py added |
---|
comment:1 by , 5 years ago
Component: | Uncategorized → Internationalization |
---|---|
Description: | modified (diff) |
Owner: | changed from | to
Status: | new → assigned |
Summary: | Algerian Arabic (ar_DZ) locale formats → Update Algerian Arabic (ar_DZ) locale formats. |
Triage Stage: | Unreviewed → Accepted |
Version: | 3.0 → master |
comment:2 by , 5 years ago
Has patch: | unset |
---|
comment:4 by , 5 years ago
Description: | modified (diff) |
---|
correct format ar-DZ locale for Algeria country