[wp-trac] [WordPress Trac] #37779: Replace _x() with __() and translators comments in wp-login.php

WordPress Trac noreply at wordpress.org
Tue Aug 23 00:47:20 UTC 2016


#37779: Replace _x() with __() and translators comments in wp-login.php
--------------------------+-----------------------------
 Reporter:  ramiy         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  I18N          |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Context function `_x()` is used to differ two similar strings with
 different meanings. Translators comments are used to describe `%s`
 placeholders.

 The attached patch is replacing:

 {{{
 /* translators: %s: site title */
 _x( '← Back to %s', 'site' )
 }}}

 with:

 {{{
 /* translators: %s: site title */
 __( '← Back to %s' )
 }}}

 There is only one string of this kind. We don't need to use context
 functions in here. And the `%s` placeholder is described in translators
 comments, not in the context area.

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


More information about the wp-trac mailing list