[wp-trac] [WordPress Trac] #49388: Default date/time formats for non-US English locales are incorrect
WordPress Trac
noreply at wordpress.org
Sun Feb 9 20:05:26 UTC 2020
#49388: Default date/time formats for non-US English locales are incorrect
-------------------------------+------------------------------
Reporter: getsnoopy | Owner: getsnoopy
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Date/Time | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by siliconforks):
Replying to [comment:2 getsnoopy]:
> I see now that my phrasing could've been better. By "non-US English
locales", I meant "non-US, English locales"; i.e., non en-US English
locales, so these would be en-GB, en-AU, en-NZ, en-ZA, and en-CA. It seems
like the translated versions of those formats in those locales are
incorrect.
That's not really true for en-CA - "F j, Y" is more commonly used in
Canadian English.
> But I also now realize that the default format should be changed as
well, since en-US is the only locale that uses "F j, Y" as the date
format, while basically every other locale/country use the long-form
international DMY date format "j F Y" (RFC 2822) or the numerical
international DMY date formats "Y-m-d" (ISO 8601) or "d/m/Y". The "F j, Y"
format can be added to just the en-US locale.
I don't see how an en-US translation could be "added to just the en-US
locale" - if a WordPress installation uses the en-US locale, it doesn't
install any translation files at all; it just uses the default
translatable strings (which are assumed to already be in the en-US
locale).
Probably the thing that needs to be fixed is the translation you have
installed, which should change "jS F Y" to "j F Y". Which locale are you
using - is it en-GB?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49388#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list