Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: ext/common.js

Issue 6432313504169984: Issue 1663 - Various Firefox-related changes of the first-run page (Closed)
Patch Set: Addressed comments Created Jan. 7, 2015, 4:31 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « background.js ('k') | firstRun.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « background.js ('k') | firstRun.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld