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

WordPress Trac noreply at wordpress.org
Mon Nov 4 12:17:52 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:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-------------------------

Comment (by swissspidy):

 It does, I tested it with the theme above. But of course if you do
 something like directly adding `echo esc_attr_x( 'Page not found', '404
 error page', 'your-theme-name' );` to your `functions.php` file, that will
 trigger translation loading way too early (and would result in a
 doing_it_wrong warning).

 Anyhow, this was just a first quick feedback while I am looking into it.

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


More information about the wp-trac mailing list