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

Unified Diff: chrome/content/ui/i18n.js

Issue 11533106: Prepared adblockplus for Safari (Closed)
Patch Set: Addressed comments Created Oct. 30, 2013, 5:21 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 | « chrome/content/ui/firstRun.js ('k') | chrome/locale/en-US/firstRun.properties » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/ui/i18n.js
===================================================================
--- a/chrome/content/ui/i18n.js
+++ b/chrome/content/ui/i18n.js
@@ -16,10 +16,14 @@
*/
var i18n;
-if (typeof chrome != "undefined")
-{
+
+if (typeof ext != "undefined")
+ i18n = ext.i18n;
+else if (typeof chrome != "undefined")
+ // TODO: This check only exist for backwards compatibility, while the Safari
+ // port isn't merged into the adblockpluschrome repo. So this branch should
+ // be removed when the Safari port was merged.
i18n = chrome.i18n;
-}
else
{
// Using Firefox' approach on i18n instead
« no previous file with comments | « chrome/content/ui/firstRun.js ('k') | chrome/locale/en-US/firstRun.properties » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld