[wp-trac] [WordPress Trac] #11226: Month name declension case

WordPress Trac noreply at wordpress.org
Sat Oct 10 03:48:32 UTC 2015


#11226: Month name declension case
-------------------------+-----------------------------
 Reporter:  waclawjacek  |       Owner:  SergeyBiryukov
     Type:  enhancement  |      Status:  reviewing
 Priority:  normal       |   Milestone:  4.4
Component:  I18N         |     Version:  2.9
 Severity:  minor        |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch needs-refresh => has-patch
 * priority:  low => normal


Comment:

 Adding a context to `date_i18n()` doesn't really solve anything, because
 the correct case depends on date format being used, not on the string
 placement.

 `date_i18n( 'F Y' )` doesn't need declension for example, but `date_i18n(
 'j F Y' )` does.

 [https://i18n.trac.wordpress.org/browser/pl_PL/tags/4.3.1/dist/wp-
 content/languages/pl_PL.php Polish] and
 [https://i18n.trac.wordpress.org/browser/hr/tags/4.3.1/dist/wp-
 content/languages/hr.php Croatian] packages currently use a regex filter
 as a workaround.

 [attachment:11226.3.diff] brings that into core, so that other Slavic
 languages (where similar rules apply) could use it too.

 It also has the
 [https://i18n.trac.wordpress.org/browser/ca/tags/4.3.1/dist/wp-
 content/languages/ca.php Catalan] filter, so these three locales can
 remove their `$locale.php` files once this is in core.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/11226#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list