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

WordPress Trac noreply at wordpress.org
Mon Nov 18 14:07:45 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 albigdd):

 Your patch works for my custom theme which provides its localized files in
 `/languages`. So this code work's again:

 {{{#!php
 load_theme_textdomain( 'MYTEXTDOMAIN', get_template_directory() .
 '/languages' );
 }}}


 Looking forward to see this patch in 6.7.1 soon.

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


More information about the wp-trac mailing list