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

WordPress Trac noreply at wordpress.org
Wed Nov 20 13:33:15 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 commit      |     Focuses:
  dev-reviewed fixed-major                       |
-------------------------------------------------+-------------------------

Comment (by desrosj):

 In [changeset:"59433" 59433]:
 {{{
 #!CommitTicketReference repository="" revision="59433"
 i18n: Account for `load_*_textdomain()` after JIT loading.

 When `load_*_textdomain()` functions are called after WordPress has
 already attempted just-in-time loading of translations, nothing happens.

 This updates the related logic to retry translation loading when a custom
 path is set to ensure all translations are available.

 Additionally, this also fixes cases where an `en_US.mo` file is provided
 with non-English strings to override the default language.

 Follow up to [59157].

 Reviewed by SergeyBiryukov.
 Merges [59430] to the 6.7 branch.

 Props swissspidy, peterwilsoncc, desrosj, apermo, sergeybiryukov,
 wildworks, tigriweb, twvania, looswebstudio, stimul, audrasjb, finntown,
 bluantinoo, timwhitlock, albigdd.
 See #62337.
 }}}

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


More information about the wp-trac mailing list