[wp-trac] [WordPress Trac] #45628: Translator comments showing up incorrectly for certain cases

WordPress Trac noreply at wordpress.org
Thu Dec 13 17:19:39 UTC 2018


#45628: Translator comments showing up incorrectly for certain cases
--------------------------+-----------------------------
 Reporter:  Otto42        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  I18N          |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Example (non-specific to 5.0, although it only started showing up after
 the 5.0 release):

 https://build.trac.wordpress.org/browser/branches/5.0/wp-includes/class-
 wp-locale.php?marks=167#L167

 https://build.trac.wordpress.org/browser/branches/5.0/wp-includes/class-
 wp-locale.php?marks=195#L195

 The first one has this line, which works fine.

 {{{
 $this->month['12'] = /* translators: month name */ __( 'December' );
 }}}

 The second one has this:

 {{{
 $this->month_abbrev[ __( 'December' ) ]  = /* translators: three-letter
 abbreviation of the month */ _x( 'Dec', 'December abbreviation' );
 }}}

 Now, this may be in the build tools, or in recent changes to glotpress,
 but in the translate site, this particular entry for "December" ends up
 showing up with this comment:

 Comment: translators: month name translators: three-letter abbreviation of
 the month

 Now, this is obviously confusing. In at least two cases, UK and IT, the
 translators ended up translating it as the abbreviation. This lead to
 users having their date displays suddenly change from full months to
 abbreviated months.

 https://wordpress.org/support/topic/wp-5-does-not-recognize-the-date-
 format-l-j-f-y/

 Changing the translations back fixes the problem, but this file should
 probably be better organized to make sure that the translator comment goes
 onto the correct string, or the build tools should be modified to make the
 same happen.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45628>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list