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

Side by Side 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.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | desktop-options.js » ('j') | ext/common.js » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-present eyeo GmbH 3 * Copyright (C) 2006-present eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 }; 85 };
86 86
87 modules.utils = { 87 modules.utils = {
88 Utils: { 88 Utils: {
89 getDocLink(link) 89 getDocLink(link)
90 { 90 {
91 return "https://adblockplus.org/redirect?link=" + encodeURIComponent(lin k); 91 return "https://adblockplus.org/redirect?link=" + encodeURIComponent(lin k);
92 }, 92 },
93 get appLocale() 93 get appLocale()
94 { 94 {
95 return parent.ext.i18n.locale.replace(/_/g, "-"); 95 return chrome.i18n.getUILanguage();
96 }, 96 },
97 get readingDirection() 97 get readingDirection()
98 { 98 {
99 return /^(?:ar|fa|he|ug|ur)\b/.test(this.appLocale) ? "rtl" : "ltr"; 99 return /^(?:ar|fa|he|ug|ur)\b/.test(this.appLocale) ? "rtl" : "ltr";
100 } 100 }
101 } 101 }
102 }; 102 };
103 103
104 modules.prefs = {Prefs: new EventEmitter()}; 104 modules.prefs = {Prefs: new EventEmitter()};
105 let prefs = { 105 let prefs = {
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 }, 601 },
602 filter: { 602 filter: {
603 text: "||example.com/some-annoying-popup$popup", 603 text: "||example.com/some-annoying-popup$popup",
604 whitelisted: false, 604 whitelisted: false,
605 userDefined: true, 605 userDefined: true,
606 subscription: null 606 subscription: null
607 } 607 }
608 }); 608 });
609 }); 609 });
610 }()); 610 }());
OLDNEW
« no previous file with comments | « no previous file | desktop-options.js » ('j') | ext/common.js » ('J')

Powered by Google App Engine
This is Rietveld