Closed Bug 427284 Opened 17 years ago Closed 17 years ago

Not all region codes are uppercase

Categories

(addons.mozilla.org Graveyard :: Dictionaries, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: clouserw, Assigned: clouserw)

Details

Attachments

(1 file)

In our code we normalize the locale code to xx-YY, but that isn't always the case (eg. sr-Latn and ca-valencia). When they don't match, it messes up our dictionary list.
Attachment #313836 - Flags: review?(fwenzel)
Comment on attachment 313836 [details] [diff] [review] fix string comparison It wfm. What you may want to change before checking it in is removing the second "strtolower" on $locale: + $locale = strtolower(implode('-', $locale_parts)); + if (in_array(strtolower($locale), array_map('strtolower', array_keys($native_languages)))) {
Attachment #313836 - Flags: review?(fwenzel) → review+
Thanks Fred. Fixed in r12040
Status: NEW → RESOLVED
Closed: 17 years ago
Keywords: push-needed
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: