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

WordPress Trac noreply at wordpress.org
Sun Nov 3 13:38:07 UTC 2024


#62337: i18n: Translation is not applied in load_theme_textdomain() function
--------------------------+-----------------------------
 Reporter:  wildworks     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  I18N          |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Originally reported in the Gutenberg repository:
 https://github.com/WordPress/gutenberg/issues/66547

 Themes not hosted on wordpress.org need to have translations applied in
 the following way:

 {{{
 <?php
 function translate_test_load_theme_textdomain() {
   load_theme_textdomain( 'translate-test', get_template_directory() .
 '/languages' );
 }
 add_action( 'init', 'translate_test_load_theme_textdomain' );
 }}}


 However, in 6.7 RC2, it seems that the translations are not applied at
 all.

 I created a minimal repository to test this issue:
 https://github.com/t-hamano/translate-test

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


More information about the wp-trac mailing list