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

Unified Diff: lib/utils.js

Issue 5749582424178688: Ported over anti-adblock message notification (Closed)
Patch Set: Created March 19, 2014, 1:28 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/prefs.js ('k') | metadata.common » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/utils.js
===================================================================
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -21,7 +21,10 @@
systemPrincipal: null,
getString: function(id)
{
- return id;
+ if (typeof ext !== "undefined" && "i18n" in ext)
+ return ext.i18n.getMessage("global_" + id);
+ else
+ return id;
},
// This function can take additional parameters. Second paramater will be
« no previous file with comments | « lib/prefs.js ('k') | metadata.common » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld