[wp-trac] Re: [WordPress Trac] #3976: Support for Full Blog Translation

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 16 14:19:56 GMT 2007


#3976: Support for Full Blog Translation
--------------------------------------+-------------------------------------
 Reporter:  harkos                    |        Owner:  harkos  
     Type:  enhancement               |       Status:  reopened
 Priority:  normal                    |    Milestone:          
Component:  General                   |      Version:  2.1.2   
 Severity:  normal                    |   Resolution:          
 Keywords:  translation dev-feedback  |  
--------------------------------------+-------------------------------------
Comment (by nbachiyski):

 On line 364 in {{{general-template.php}}} lies the following:

 {{{$text = sprintf(__('%1$s %2$d'),
 $wp_locale->get_month($arcresult->month), $arcresult->year);}}}

 Here, every language can define its own structure for the text. At this
 stage a translator just cannot know what this string is about, however we
 have made some firm steps in that direction and soon we will be able to
 add descriptions for gettext strings. Anyway, let me not digress much :)

 The text for the yearly archive is unconditionally '%d' % year, and the
 daily and weekly archives are locale-aware.

 There certainly is place for i18n improvement in this function. However I
 do not think it will be convenient for most of the translators if we just
 used hooks and they were left with no real chance for translating the
 string. In my opinion we should aim to gather everything around the
 gettext strings idea.

 P.S. 3 simple tricks to get with the formatting here: preview, preview,
 preview :)

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


More information about the wp-trac mailing list