[wp-trac] [WordPress Trac] #34203: Replace unneeded context with translator comments

WordPress Trac noreply at wordpress.org
Wed Oct 7 23:53:11 UTC 2015


#34203: Replace unneeded context with translator comments
----------------------------+-----------------
 Reporter:  SergeyBiryukov  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  4.4
Component:  Customize       |    Version:  4.1
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------
 Background:
 https://wordpress.slack.com/archives/polyglots/p1442850615001279

 There are two strings added in [30306] that need a translator comment
 instead of a context. They are now in [source:trunk/src/wp-includes/class-
 wp-customize-manager.php?rev=34320#L1382
 WP_Customize_Manager::get_document_title_template()] after [34269].

 `_x()` is meant for same string used in different contexts, e.g. `_x( 'Add
 New', 'post' )` vs. `_x( 'Add New', 'plugin' )`, as it may require a
 different translation in each case.

 Placeholders generally need a translator comment (`/* translators: ...
 */`), not a context.

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


More information about the wp-trac mailing list