[wp-trac] [WordPress Trac] #61628: Localization Behavior Change
WordPress Trac
noreply at wordpress.org
Fri Jul 12 00:11:17 UTC 2024
#61628: Localization Behavior Change
-------------------------------------+------------------------------
Reporter: gsexton | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback close | Focuses:
-------------------------------------+------------------------------
Comment (by gsexton):
@swissspidy Thanks for replying.
I admit, I'm not understanding the localization and this is work I did
quite a while ago. The source for my plugin is at:
https://plugins.trac.wordpress.org/browser/connect-daily-web-
calendar/#trunk/captions
The customer reports upgrading to 6.5.5 triggered the breakage. I looked
through the changelogs and see some stuff around 6.5.3 that look related.
In regards to https://core.trac.wordpress.org/ticket/28197. People got
wrapped up in the auto using languages for other locales, and ignored the
big obvious wins they could have gotten by looking at the language. Java's
is pretty simple and wouldn't be hard to implement and wouldn't have any
performance problems.
In Java, I have:
captions.properties
captions_en.properties
captions_en_US.properties
captions_en_AU.properties
If someone from the UK visits the site, it looks for
captions_en_UK.properties. When it doesn't find that, it tries
captions_en.properties. If it doesn't find that, it returns
captions.properties. It's actually a little nicer, because it will
actually create a merged set of:
captions_en_AU.properties+captions_en.properties+captions.properties where
the left side is more significant. So, I can change the word "colour" in
captions_en_AU.properties and they get that along with
captions_en.properties.
Anyhow, I'll try to take a look through the WP source to see how it's not
working.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61628#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list