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

Unified Diff: i18n.js

Issue 29573083: Issue 5028 - Use browser namespace (Closed) Base URL: https://hg.adblockplus.org/adblockplusui/
Patch Set: Move i18n code into polyfill.js Created Oct. 11, 2017, 11:27 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
« background.html ('K') | « firstRun.html ('k') | lib/antiadblockInit.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: i18n.js
===================================================================
--- a/i18n.js
+++ b/i18n.js
@@ -53,17 +53,17 @@
processString(match[4], currentElement);
}
else
currentElement.appendChild(document.createTextNode(str));
}
while (element.lastChild)
element.removeChild(element.lastChild);
- processString(chrome.i18n.getMessage(stringName, args), element);
+ processString(browser.i18n.getMessage(stringName, args), element);
}
};
// Loads i18n strings
function loadI18nStrings()
{
function addI18nStringsToElements(containerElement)
{
« background.html ('K') | « firstRun.html ('k') | lib/antiadblockInit.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld