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

Unified Diff: lib/filterValidation.js

Issue 29569649: Issue 4580 - Replace ext.i18n with i18n (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Update adblockplusui dependency again Created Oct. 10, 2017, 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 | « lib/filterComposer.js ('k') | lib/notificationHelper.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/filterValidation.js
===================================================================
--- a/lib/filterValidation.js
+++ b/lib/filterValidation.js
@@ -71,25 +71,25 @@
*/
toString()
{
let message;
if (this.reason)
message = Utils.getString(this.reason);
else
{
- message = ext.i18n.getMessage(
+ message = chrome.i18n.getMessage(
this.type.replace(/-/g, "_"),
"selector" in this ? "'" + this.selector + "'" : null
);
}
if (this.lineno)
{
- message = ext.i18n.getMessage(
+ message = chrome.i18n.getMessage(
"line", this.lineno.toLocaleString()
) + ": " + message;
}
return message;
}
};
function isValidCSSSelector(selector)
« no previous file with comments | « lib/filterComposer.js ('k') | lib/notificationHelper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld