[wp-trac] [WordPress Trac] #37819: _load_textdomain_just_in_time() is really not nice with alternative translations
WordPress Trac
noreply at wordpress.org
Mon Sep 19 11:42:58 UTC 2016
#37819: _load_textdomain_just_in_time() is really not nice with alternative
translations
--------------------------------------+------------------------------
Reporter: imath | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: 4.6
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Comment (by imath):
I agree the behaviour of load_textdomain is not new, what's new is
`_load_textdomain_just_in_time()`. As it's loaded early, it prevents
custom text domain to be used, unless you unload/load for each plugin
which is really too bad...
The patch won't change anything to the order of `load_plugin_textdomain()`
or `load_theme_textdomain()` because as soon as you find a mo file in
`WP_LANG_DIR . '/plugins'` these functions are returning true and never
look into the plugin's language directory.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37819#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list