[wp-trac] Re: [WordPress Trac] #2070: internationalization of javascript files

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 23 23:39:08 GMT 2007


#2070: internationalization of javascript files
------------------------+---------------------------------------------------
 Reporter:  nbachiyski  |        Owner:  anonymous
     Type:  defect      |       Status:  new      
 Priority:  normal      |    Milestone:           
Component:  General     |      Version:  2.0      
 Severity:  minor       |   Resolution:           
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by andy):

 Translated strings cannot be concatenated into a sentence because you
 cannot assume word order.

 {{{'<?php echo addslashes(__('Are you sure you want to delete this')); ?>'
 + ' ' + what + '?'}}}

 should be

 {{{'<?php echo addslashes(sprintf(__('Are you sure you want to delete this
 %s?'), $what)); ?>'}}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2070#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list