|Reported by:||downstairsdev||Owned by:|
We should do a better job of loading translation files in the user's language if they are available.
For instance, if a Spanish speaker has their locale set as es_MX (Spanish Mexico) it would be preferable to load any available Spanish translations files (es_ES, es_CO, etc) before returning the default (generally English).
I wrote up a quick patch, tester plugin, and plugin that demonstrate this idea. If a $mofile is not available in the user's current locale, it will search for and return the first available translation that is also in the same language.
A better option might be to create a filterable stack rank of locales for WordPress to search for within the language before returning the default. Other suggestions are also welcome.
This idea was also discussed in an "ideas" thread:
Change History (34)
comment:5 follow-up: ↓ 10 @downstairsdev — 17 months ago
comment:9 in reply to: ↑ 2 @vanillalounge — 17 months ago
comment:16 in reply to: ↑ 14 @cvedovini — 17 months ago
comment:17 @nacin — 17 months ago
- Milestone Awaiting Review deleted
- Resolution set to maybelater
- Status changed from new to closed