Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#34203 closed defect (bug) (fixed)

Replace unneeded context with translator comments

Reported by: SergeyBiryukov Owned by: SergeyBiryukov
Priority: normal Milestone: 4.4
Component: Customize Version: 4.1
Severity: normal Keywords:
Cc: Focuses:

Description

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 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.

Change History (1)

#1 @SergeyBiryukov
11 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 34921:

Customizer: Replace context for two strings added in [30306] with a translator comment.

Fixes #34203.

Note: See TracTickets for help on using tickets.