[wp-trac] [WordPress Trac] #6742: Add hook for translating English

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 16 08:03:40 GMT 2008


#6742: Add hook for translating English
--------------------------+-------------------------------------------------
 Reporter:  Viper007Bond  |       Owner:  anonymous
     Type:  enhancement   |      Status:  new      
 Priority:  lowest        |   Milestone:  2.6      
Component:  i18n          |     Version:  2.5      
 Severity:  trivial       |    Keywords:  has-patch
--------------------------+-------------------------------------------------
 I want to be able to make `__('foo')` return `bar`, even if the blog is in
 English. If WordPress is in any other language besides English, I think
 you can just use the "gettext" filter to do this. However, my blog is in
 English, so you can't.

 Attached patch adds a backwards compatible pre-translating hook for
 allowing plugins to switch phrases before they are translated.

 It also passes the domain to "gettext" filter for the hell of it.

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


More information about the wp-trac mailing list