[wp-trac] [WordPress Trac] #3307: Add i18n support to function get_archives()

WordPress Trac wp-trac at lists.automattic.com
Tue Oct 31 04:38:12 GMT 2006


#3307: Add i18n support to function get_archives()
----------------------------+-----------------------------------------------
 Reporter:  yskins          |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  lowest          |   Milestone:  2.1      
Component:  Administration  |     Version:  2.0.4    
 Severity:  normal          |    Keywords:  i18n     
----------------------------+-----------------------------------------------
 In english, we use the format like "January 2006" in archive list. But in
 chinese, we often use the format like "2006-1".
 Can you replace line 339 and line 342 in /wp-includes/template-functions-
 general.php to:
 {{{
 $text = sprintf(__('%s %d'), $month[zeroise($arcresult->month,2)],
 $arcresult->year);
 }}}
 So I can translate '%s %d' into '%2$d-%1$s' in my po file.

 I'm using WordPress 2.0.5

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


More information about the wp-trac mailing list