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

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 30 13:38:51 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 Denis-de-Bernardy):

 curious to know if you've tried something like this:

 {{{
 override_locale($locale) {
   if ( !in_the_loop() && !is_singular() )
     return $locale;

   // do stuff

   return $locale;
 }

 add_filter('locale', 'override_locale');
 }}}

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


More information about the wp-trac mailing list