get_locale() should correct a shortened WPLANG
|Reported by:||nacin||Owned by:|
Some locales have distributed WPLANG in wp-config-sample with incorrect values. For example NL used nl for a WPLANG value from 3.0 to 3.0.2. They now use nl_NL, but the damage has been done for new installs during that time.
One, on the wp.org side, we should check for a full WPLANG, matching the expression [a-z][a-z]_[A-Z][A-Z] and reject the build if it fails.
Two, get_locale() should correct for a shorthand WPLANG. More or less, if it's two characters (xy or XY), then make it the form of xy_XY.
Change History (7)
- Keywords 3.2-early added
- Milestone changed from 3.1 to Future Release