Opened 7 years ago
Closed 7 years ago
#18143 closed defect (invalid)
german "months-standAlone-abbr" for gregorian calendar not correct
Reported by: | gerhard presser | Owned by: | Adam Peller |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | Date | Version: | 1.10.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
the english resource-bundle uses 3 letters without trailing dots for the month-names, the german resource-bundle uses -) trailing dots -) the full month name for certain months
if I use dojo/date/locale to format a date with following pattern: dd.MMM.yyyy HH:mm
I get german (wrong):
25.Juni.2014 10:49 18.Dez..2013 15:07
english (correct):
25.Jun.2014 10:49 18.Dec.2013 15:07
the resource bundle (dojo\cldr\nls\de\gregorian.js) has to be changed to
... "months-format-abbr": [ "Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez" ], ...
to confirm with the other bundles
Change History (3)
comment:1 Changed 7 years ago by
comment:2 Changed 7 years ago by
Component: | General → Date |
---|---|
Owner: | set to Adam Peller |
comment:3 Changed 7 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
This is the data as specified by the CLDR It works properly when used with the German date format, provided. Unfortunately, there is nothing to prevent periods used in the translations which happen to be incompatible with the date format you used with period separators. It's a good practice not to use a fixed date format.
it seems I was taken in by some false information.
java also uses inconsistent formatting.
MMM seems to be defined as the short form OR abbrevation nevertheless it would be welcome, if at least the dot-handling would be consisten (in dojo).
meaning: no trailing dots