[wp-trac] [WordPress Trac] #34213: Change priority for loading theme/plugin translations

WordPress Trac noreply at wordpress.org
Thu May 5 16:47:22 UTC 2016


#34213: Change priority for loading theme/plugin translations
------------------------------+-----------------------
 Reporter:  sebastian.pisula  |       Owner:
     Type:  enhancement       |      Status:  reopened
 Priority:  normal            |   Milestone:  4.6
Component:  I18N              |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+-----------------------

Comment (by swissspidy):

 Replying to [comment:18 ocean90]:
 > Replying to [comment:17 swissspidy]:
 > The other functions have the `$path` handling before the loading part.
 Should we change that for all?
 > #micro-optimization
 >

 Sorry, what exactly would you suggest to change?

 >
 > I also just noticed that `$mofile` in [attachment:34213.diff] for
 `load_theme_textdomain()` is only valid for language packs. The .mo file
 has a different naming scheme, from the DocBlock: "The .mo files must be
 named based on the locale exactly.".

 Ugh, yeah, that's true. Thanks for pointing this out! I should've known as
 I've run into this before.

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


More information about the wp-trac mailing list