1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-01-03 10:31:54 +01:00

Added translations

This commit is contained in:
kkapsner 2015-04-15 11:33:10 +02:00
parent f0e3a6a874
commit 8524301655
3 changed files with 19 additions and 17 deletions

View File

@ -198,18 +198,7 @@
var contentURL = new URL(worker.contentURL);
var url = contentURL.href;
var domain = contentURL.hostname;
var message = "Faked readout on " + url;
// log(" worker.tab", worker.tab);
// log(" windowUtils", windowUtils);
// log(" ", windowUtils.windows("navigator:browser", {includePrivate: true})[0][0]);
// log(" ", windowUtils.windows("navigator:browser", {includePrivate: true})[0][1]);
// log(" ", windowUtils.windows("navigator:browser", {includePrivate: true})[0][2]);
// log(" tabs", tabUtils.getTabs());
// console.log(worker.tab.id);
// for each (let tab in tabUtils.getTabs()){
// console.log(tabUtils.getTabId(tab));
// }
var message = _("fakedReadout").replace(/\{url\}/g, url);
var tab = tabUtils.getTabForId(worker.tab.id);
var tabBrowser = tabUtils.getTabBrowserForTab(tab);
@ -219,7 +208,7 @@
// var notifyBox = ownerBrowser.gBrowser.getNotificationBox();
var notifyBox = tabBrowser.getNotificationBox();
// log(" chrome window", require("sdk/windows").browserWindows);
// var notifyBox = windowUtils.getXULWindow(browser.contentWindow).XULBrowserWindow.getNotificationBox(windowUtils.getDOMWindow(browser.contentWindow));
// var notifyBox = windowUtils.getXULWindow(browser.contentWindow).XULBrowserWindow.getNotificationBox(browser.contentWindow);
var notification = notifyBox.getNotificationWithValue("fake-readout");
if (notification){
notification.label = message;
@ -227,7 +216,7 @@
else {
var buttons = [
{
label: "whitelist URL",
label: _("whitelistURL"),
accessKey: "",
callback: function(){
prefs.whiteList += "," + url;
@ -237,7 +226,7 @@
}
},
{
label: "whitelist domain",
label: _("whitelistDomain"),
accessKey: "",
callback: function(){
prefs.whiteList += "," + domain;

View File

@ -37,3 +37,9 @@ askForInvisibleReadoutPermission= Wollen Sie das Auslesen von unsichtbaren <canv
sourceOutput= Aufrufende Datei
stackEntryOutput= {url} Zeile {line} Spalte {column}
fakedReadout = Auslese vorgetäuscht auf {url}
settings = Einstellungen
displayCallingStack = Aufrufestack anzeigen
whitelistURL = erlaube URL
whitelistDomain = erlaube Domain

View File

@ -37,3 +37,10 @@ askForInvisibleReadoutPermission= Do you want to allow invisible <canvas> readou
sourceOutput= Calling file
stackEntryOutput= {url} line {line} column {column}
fakedReadout = Faked readout on {url}
settings = settings
displayCallingStack = display calling stack
whitelist = whitelist
whitelistURL = whitelist URL
whitelistDomain = whitelist domain