[wp-trac] [WordPress Trac] #34498: Avoid using <code> in translation string (wp-admin/includes/class-wp-plugins-list-table.php)

WordPress Trac noreply at wordpress.org
Fri Oct 30 01:48:22 UTC 2015


#34498: Avoid using <code> in translation string (wp-admin/includes/class-wp-
plugins-list-table.php)
--------------------------+-----------------------------
 Reporter:  ramiy         |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.4
Component:  I18N          |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------

Comment (by ramiy):

 @SergeyBiryukov, the last string still has `<code>` tags.


 OLD STRING:
 {{{__( 'Requires <code>%s</code> in <code>wp-config.php</code>.' )}}}

 YOUR COMMIT:
 {{{__( 'Requires %s in <code>wp-config.php</code>.' )}}}

 MY PROPOSAL:
 {{{__( 'Requires %1$s in %2$s.' )}}}


 In many cases we had file names with code tags, and we moved them out of
 the translation strings. Removing the HTML tags from the string makes it
 easier to translate those strings, especially in RTL languages.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34498#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list