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

Unified Diff: ext/common.js

Issue 29328672: Issue 2668 - Use new subscription types in options page (Closed)
Patch Set: Created Sept. 25, 2015, 3:27 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 | « no previous file | locale/en-US/common.json » ('j') | options.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ext/common.js
===================================================================
--- a/ext/common.js
+++ b/ext/common.js
@@ -141,7 +141,7 @@
return [text, placeholders];
};
- var readCatalog = function(locale)
+ var readCatalog = function(locale, catalogFile)
{
var xhr = new XMLHttpRequest();
xhr.open("GET", "locale/" + locale + "/" + catalogFile, false);
@@ -190,7 +190,9 @@
if (locales.length == 0)
return "";
- readCatalog(locales.shift());
+ var locale = locales.shift();
+ readCatalog(locale, "common.json");
+ readCatalog(locale, catalogFile);
}
}
};
« no previous file with comments | « no previous file | locale/en-US/common.json » ('j') | options.js » ('J')

Powered by Google App Engine
This is Rietveld