[wp-trac] [WordPress Trac] #61628: Localization Behavior Change

WordPress Trac noreply at wordpress.org
Thu Jul 11 01:23:05 UTC 2024


#61628: Localization Behavior Change
--------------------------+-----------------------------
 Reporter:  gsexton       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I've noticed a change in localization behavior and was wondering if
 someone could point me to some documentation.

 I have a plugin, and in the plugin/captions directory are various .mo/.po
 files. There's an en_US file.

 A user in Australia has reported they are not getting captions. They're
 getting the Slug (mnemonic) value of the caption. I replicated the issue
 by setting the site language on my test environment to en_AU. I then
 created en_AU.mo/.po files, and the captions appeared.

 I'm a little surprised. I tried creating .mo/.po files without a language
 specifier, and those weren't picked up. I'm familiar with Java's method
 for ResourceBundles where it looks for bundle_lang_COUNTRY.properties,
 bundle_lang.properties, and finally bundle.properties? How is fallback
 handled in the case where there isn't a specific language_COUNTRY match?

 I did review this page:

 https://make.wordpress.org/core/2024/02/27/i18n-improvements-6-5
 -performant-translations/

 but it doesn't really seem on-point.

 Thanks for your help!

 George

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


More information about the wp-trac mailing list