[wp-trac] [WordPress Trac] #34114: Remove the requirement to call load_plugin_textdomain() or load_theme_textdomain()

WordPress Trac noreply at wordpress.org
Thu Apr 21 20:30:09 UTC 2016


#34114: Remove the requirement to call load_plugin_textdomain() or
load_theme_textdomain()
---------------------------------------------------+------------------
 Reporter:  johnbillion                            |       Owner:
     Type:  enhancement                            |      Status:  new
 Priority:  normal                                 |   Milestone:  4.6
Component:  I18N                                   |     Version:
 Severity:  normal                                 |  Resolution:
 Keywords:  dev-feedback has-patch has-unit-tests  |     Focuses:
---------------------------------------------------+------------------

Comment (by giuseppe.mazzapica):

 Replying to [comment:10 swissspidy]:
 > Replying to [comment:9 giuseppe.mazzapica]:
 > > @swissspidy So a theme can load a translation from `WP_LANG_DIR .
 '/plugins'` and a plugin from `WP_LANG_DIR . '/themes'`?
 > >
 > > It doesn't feel really right...
 >
 > Pretty sure that's already possible, i.e. when you use `__( 'Primary
 Menu',      'twentyfifteen' )` in your plugin, and the `twentyfifteen`
 text domain is loaded, it will translate that text.

 If I explicitly load a language file in my plugin folder, as of now, that
 language file is loaded. Seems I can't do that anymore.

 Am I wrong or with your patch there will be no way to load a language file
 from plugin / theme folder if there's a file for that domain in either
 plugins or themes language folder?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34114#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list