Index: ext/common.js |
=================================================================== |
--- a/ext/common.js |
+++ b/ext/common.js |
@@ -80,17 +80,17 @@ |
{ |
var candidates = []; |
var defaultLocale = "en-US"; |
// e.g. "ja-jp-mac" -> "ja-JP", note that the part after the second |
// dash is dropped, since we only support language and region |
var parts = selectedLocale.split("-"); |
var language = parts[0]; |
- var region = (parts[1] || "").toUpperCase(); |
+ var region = (parts[1] || "").toUpperCase(); |
if (region) |
candidates.push(language + "-" + region); |
candidates.push(language); |
if (candidates.indexOf(defaultLocale) == -1) |
candidates.push(defaultLocale); |