[wp-trac] [WordPress Trac] #31862: Avoid using HTML tags in translation strings and add context

WordPress Trac noreply at wordpress.org
Thu Apr 2 01:27:11 UTC 2015


#31862: Avoid using HTML tags in translation strings and add context
--------------------------+-----------------------------
 Reporter:  ramiy         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  I18N          |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Currenly we have four translation strings in `wp-admin/plugin-editor.php`
 using `<strong>` & `</strong>` tags.

 I've moved the HTML tags outside of the main string, and added context
 using `_x()` function.

 Before:
 * Editing <strong>%s</strong> (active)
 * Browsing <strong>%s</strong> (active)
 * Editing <strong>%s</strong> (inactive)
 * Browsing <strong>%s</strong> (inactive)

 After:
 * Editing %s
 * Browsing %s
 * (active)
 * (inactive)

 Now those are simpler strings, and more important - they are easier to
 translate.

 I hope that in the future we will have more translator-friendly-strings!

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


More information about the wp-trac mailing list