Filter load_textdomain to control mofiles loaded
|Reported by:||johanee||Owned by:||westi|
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.
Change History (12)
- Owner changed from nbachiyski to westi
- Status changed from new to reviewing