[wp-trac] [WordPress Trac] #11012: Filter load_textdomain to control mofiles loaded

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 23 08:59:11 UTC 2009


#11012: Filter load_textdomain to control mofiles loaded
-------------------------+--------------------------------------------------
 Reporter:  johanee      |       Owner:  nbachiyski
     Type:  enhancement  |      Status:  new       
 Priority:  normal       |   Milestone:  2.9       
Component:  i18n         |     Version:  2.9       
 Severity:  normal       |    Keywords:  has-patch 
-------------------------+--------------------------------------------------
 There are no (good, complete) hooks to control loading of textdomains.

 Core wordpress uses the various load_*_textdomain functions which allows
 us too hook in through get_locale, but a number of plugins and themes
 calls load_textdomain() directly which bypasses that.

 In my case I want it to cache the l10n object
 (http://wordpress.org/extend/plugins/cache-translation-object/ -- which
 currently abuses the locale hook) but it should also be useful for multi-
 language plugins. I've talked with michelwppi and it should solve #9686
 for him.

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


More information about the wp-trac mailing list