[wp-trac] [WordPress Trac] #31859: Avoid using HTML tags in translation strings - remove the count class

WordPress Trac noreply at wordpress.org
Sat Apr 4 21:19:44 UTC 2015


#31859: Avoid using HTML tags in translation strings - remove the count class
-------------------------------------+------------------------------
 Reporter:  ramiy                    |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  I18N                     |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+------------------------------

Comment (by Tmeister):

 I don't know why that line needs translation

 {{{
 #!php
 $name = sprintf( __('%1$s <span class="count">(%2$s)</span>'), $name,
 number_format_i18n( $avail_roles[$this_role] ) );
 }}}

 There is nothing to translate there, the translation is done in line 167

 [https://github.com/WordPress/WordPress/blob/master/wp-admin/includes
 /class-wp-users-list-table.php#L167-L169]

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


More information about the wp-trac mailing list