[wp-trac] [WordPress Trac] #49012: Date format output incorrect in Finnish

WordPress Trac noreply at wordpress.org
Tue Dec 17 15:58:33 UTC 2019


#49012: Date format output incorrect in Finnish
--------------------------+------------------------------
 Reporter:  kipex         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Date/Time     |     Version:  5.3.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by SergeyBiryukov):

 Hi there, welcome to WordPress Trac! Thanks for the report.

 This appears to be different from #48606, where `wp_maybe_decline_date()`
 didn't work as expected due to not taking word boundaries into account in
 the regular expression.

 In this case it performs the replacement as expected, but it looks like
 declension rules in Finnish are different from those in Russian or other
 Slavic languages.

 Background:
 * [35517] / #11226
 * [37411] / #37411

 This functionality is controlled by a [source:tags/5.3.1/src/wp-
 includes/functions.php?marks=329-333#L321 translation setting], which is
 [https://translate.wordpress.org/projects/wp/dev/fi/default/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=1367222&sort%5Bby%5D=translation_date_added&sort%5Bhow%5D=asc
 currently set to 'on'] for Finnish.

 If the replacement should not happen at all, then the setting should be
 translated to `'off'` by the
 [https://make.wordpress.org/polyglots/teams/?locale=fi Finnish translation
 team].

 If some other replacement should be performed instead, we'll need some
 examples of correct and incorrect date formats in Finnish, and how they
 map to each other, to add a special case like we [source:tags/5.3.1/src
 /wp-includes/functions.php?marks=374-377#L370 already have for the Catalan
 locale].

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


More information about the wp-trac mailing list