[wp-trac] Re: [WordPress Trac] #3687: translatable strings descriptions

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 22 22:42:14 GMT 2007


#3687: translatable strings descriptions
----------------------------+-----------------------------------------------
 Reporter:  nbachiyski      |        Owner:  anonymous
     Type:  enhancement     |       Status:  reopened 
 Priority:  normal          |    Milestone:  2.2      
Component:  General         |      Version:           
 Severity:  normal          |   Resolution:           
 Keywords:  i18n has-patch  |  
----------------------------+-----------------------------------------------
Comment (by ryan):

 glib's Q_() puts the context up front.  Prepending the context allows the
 text to have any number of | characters without causing problems.

 We cannot call __() from _c().  xgettext will extract the text passed to
 __() and put the literal string '$text' in the pot.  That's why we cut-
 and-paste the code three times.

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


More information about the wp-trac mailing list