[wp-trac] [WordPress Trac] #20952: Untranslatable strings in twenty eleven (3.4)

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 14 13:31:37 UTC 2012


#20952: Untranslatable strings in twenty eleven (3.4)
--------------------------+-----------------------------
 Reporter:  thomask       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  I18N          |    Version:  3.4
 Severity:  trivial       |   Keywords:
--------------------------+-----------------------------
 several files in twenty eleven contains

 {{{
 <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a
 reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven'
 ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?>
 }}}

 This is untranslatable for that 90 % #13651

 But there is allready a sollution on comments.php (row 33):

 {{{
  printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on
 &ldquo;%2$s&rdquo;', get_comments_number(), 'twentyeleven' ),
 number_format_i18n( get_comments_number() ), '<span>' . get_the_title() .
 '</span>' );
 }}}

 Which uses multiple plurals format

 And there is also problem with search.php, which uses 3 times
 {{{
 _e( 'Search', 'twentyeleven' );
 }}}
 but in three diferent context - label, placeholder and button, so
 translating it once will change it on 3 places with 3 slightly different
 meanings - english is probably the ongly language, where those three are
 same (and even in english i think, that "search" as placeholder for search
 form is not the best option.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20952>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list