[wp-trac] [WordPress Trac] #62337: i18n: Translation is not applied in load_theme_textdomain() function

WordPress Trac noreply at wordpress.org
Tue Nov 19 12:09:29 UTC 2024


#62337: i18n: Translation is not applied in load_theme_textdomain() function
--------------------------------------+-------------------------
 Reporter:  wildworks                 |       Owner:  swissspidy
     Type:  defect (bug)              |      Status:  reviewing
 Priority:  normal                    |   Milestone:  6.7.1
Component:  I18N                      |     Version:  6.7
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-------------------------

Comment (by swissspidy):

 Replying to [comment:39 timwhitlock]:
 > Replying to [comment:38 swissspidy]:
 > > Thanks, I‘ll take a closer look at your code later this week when I‘m
 back from vacation. Curious to learn more about why the other existing
 hooks won‘t work for that use case.
 > >
 >
 > I appreciate the offer of your time, but the reason is very simple -
 There is nothing to hook into. If JIT loading has already been done, then
 **no hooks fire at all** when calling `load_plugin_textdomain`.

 Because then the function doesn‘t have to do anything anymore, since a
 translation was already loaded. That‘s at least the idea behind it. Amd
 for that first load hooks are fired.
 But let me take a closer look when I am back.

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


More information about the wp-trac mailing list