[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:18:54 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 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.

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


More information about the wp-trac mailing list