[wp-trac] [WordPress Trac] #24899: Date_i18n: translate shorthand months and weekdays
WordPress Trac
noreply at wordpress.org
Wed Jul 31 16:51:35 UTC 2013
#24899: Date_i18n: translate shorthand months and weekdays
--------------------------+-----------------------------
Reporter: Daedalon | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: 3.5.2
Severity: normal | Keywords:
--------------------------+-----------------------------
Date_i18n allows months and weekdays to be shown in shorthand formats, but
those are always forced to be three letters long. That's correct for
English and several other languages, but wrong for many.
An example of proper shorthands in Finnish:
"January" -> "Jan" - "Tammikuu" -> "Tammi" (5 letters, varies between 3-6)
"Monday" -> "Mon" - "Maanantai" -> "Ma" (2 letters, always the same)
At the moment date_i18n( 'D M', $timestamp ) always returns a result that
isn't appropriate in these languages:
[http://plugins.trac.wordpress.org/browser/events-
manager/tags/5.4.4/includes/js/i18n/jquery.ui.datepicker-ar.js Arabic],
[http://plugins.trac.wordpress.org/browser/events-
manager/tags/5.4.4/includes/js/i18n/jquery.ui.datepicker-az.js
Azerbaijani], [http://plugins.trac.wordpress.org/browser/events-
manager/tags/5.4.4/includes/js/i18n/jquery.ui.datepicker-el.js Greek],
[http://plugins.trac.wordpress.org/browser/events-
manager/tags/5.4.4/includes/js/i18n/jquery.ui.datepicker-et.js Estonian],
[http://plugins.trac.wordpress.org/browser/events-
manager/tags/5.4.4/includes/js/i18n/jquery.ui.datepicker-fa.js Farsi],
[http://plugins.trac.wordpress.org/browser/events-
manager/tags/5.4.4/includes/js/i18n/jquery.ui.datepicker-fi.js Finnish],
[http://plugins.trac.wordpress.org/browser/events-
manager/tags/5.4.4/includes/js/i18n/jquery.ui.datepicker-he.js Hebrew],
[http://plugins.trac.wordpress.org/browser/events-
manager/tags/5.4.4/includes/js/i18n/jquery.ui.datepicker-hr.js Croatian],
[http://plugins.trac.wordpress.org/browser/events-
manager/tags/5.4.4/includes/js/i18n/jquery.ui.datepicker-hu.js Hungarian],
[http://plugins.trac.wordpress.org/browser/events-
manager/tags/5.4.4/includes/js/i18n/jquery.ui.datepicker-hy.js Armenian],
[http://plugins.trac.wordpress.org/browser/events-
manager/tags/5.4.4/includes/js/i18n/jquery.ui.datepicker-id.js
Indonesian], [http://plugins.trac.wordpress.org/browser/events-
manager/tags/5.4.4/includes/js/i18n/jquery.ui.datepicker-ko.js Korean],
[http://plugins.trac.wordpress.org/browser/events-
manager/tags/5.4.4/includes/js/i18n/jquery.ui.datepicker-lt.js
Lithuanian], [http://plugins.trac.wordpress.org/browser/events-
manager/tags/5.4.4/includes/js/i18n/jquery.ui.datepicker-pl.js Polish],
[http://plugins.trac.wordpress.org/browser/events-
manager/tags/5.4.4/includes/js/i18n/jquery.ui.datepicker-ta.js Tamil],
[http://plugins.trac.wordpress.org/browser/events-
manager/tags/5.4.4/includes/js/i18n/jquery.ui.datepicker-th.js Thai],
[http://plugins.trac.wordpress.org/browser/events-
manager/tags/5.4.4/includes/js/i18n/jquery.ui.datepicker-vi.js Vietnamese]
and [http://plugins.trac.wordpress.org/browser/events-
manager/tags/5.4.4/includes/js/i18n/jquery.ui.datepicker-zh-CN.js
Chinese]. Half the population of the planet.
Instead of 'D' returning a three letter weekday and 'M' returning a three
letter month, they should return the localized shorthand weekday and
shorthand month regardless of length.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24899>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list