[wp-trac] Re: [WordPress Trac] #9686: Please : load_theme_textdomain function be hookable

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 30 16:06:34 GMT 2009


#9686: Please : load_theme_textdomain function be hookable
-------------------------------------------------------+--------------------
 Reporter:  michelwppi                                 |        Owner:  nbachiyski    
     Type:  enhancement                                |       Status:  reopened      
 Priority:  normal                                     |    Milestone:  Future Release
Component:  i18n                                       |      Version:  2.8           
 Severity:  normal                                     |   Resolution:                
 Keywords:  has-patch needs-testing reporter-feedback  |  
-------------------------------------------------------+--------------------

Comment(by michelwppi):

 xili-language fires load_'''theme'''_textdomain content when necessary
 with good parameters via a hook like in
 (line 123 and 430 of source)



 {{{
 add_action('wp', array(&$this,'xiliml_language_head'));
                 /* 'wp' = where theme's language is defined just after
 query */
 }}}
 [[BR]]

 The wanted hook for load_theme_textdomain() is needed to disable it
 (because fired in functions.php) but the function called by  add_action
 for this hook 'load_theme_textdomain' will record the value of the vars
 ($domain,$path)  used later by the plugin which will fires, at the right
 time the download of the right .mo according the language via the generic
 load_textdomain();

 I understand your worry, but a hook is the only way for avoid the
 recommandation as explained -  http://dev.xiligroup.com/?p=427 - for end
 users without php script access...

 Hope this comment is helpful !

 M

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9686#comment:11>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list