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

Unified Diff: background.js

Issue 29569659: Issue 4580 - Replace ext.i18n.getMessage with i18n.getMessage (Closed) Base URL: https://hg.adblockplus.org/adblockplusui/
Patch Set: Rebase Created Oct. 9, 2017, 5:19 a.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 | desktop-options.js » ('j') | ext/common.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: background.js
===================================================================
--- a/background.js
+++ b/background.js
@@ -87,17 +87,17 @@
modules.utils = {
Utils: {
getDocLink(link)
{
return "https://adblockplus.org/redirect?link=" + encodeURIComponent(link);
},
get appLocale()
{
- return parent.ext.i18n.locale.replace(/_/g, "-");
+ return chrome.i18n.getUILanguage();
},
get readingDirection()
{
return /^(?:ar|fa|he|ug|ur)\b/.test(this.appLocale) ? "rtl" : "ltr";
}
}
};
« no previous file with comments | « no previous file | desktop-options.js » ('j') | ext/common.js » ('J')

Powered by Google App Engine
This is Rietveld