[wp-trac] [WordPress Trac] #11012: Filter load_textdomain to control mofiles loaded
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 18 07:54:16 UTC 2009
#11012: Filter load_textdomain to control mofiles loaded
-------------------------+--------------------------------------------------
Reporter: johanee | Owner: westi
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 2.9
Component: i18n | Version: 2.9
Severity: normal | Keywords: has-patch
-------------------------+--------------------------------------------------
Comment(by westi):
I don't think this is a good idea.
{{{
$plugin_override = apply_filters( 'load_textdomain', $domain,
$mofile );
if ( 'already-loaded' == $plugin_override ) {
return true;
}
}}}
Now we can't have a plugin with a textdomain of "already-loaded" which
although a bizarre name would be a bizarre bug!
How about this?
{{{
$plugin_override = apply_filters( 'override_load_textdomain',
false, $domain, $mofile );
if ( true === $plugin_override ) {
return true;
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11012#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list