mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-18 09:28:52 +01:00
Added translations
This commit is contained in:
parent
f0e3a6a874
commit
8524301655
19
lib/main.js
19
lib/main.js
@ -198,18 +198,7 @@
|
|||||||
var contentURL = new URL(worker.contentURL);
|
var contentURL = new URL(worker.contentURL);
|
||||||
var url = contentURL.href;
|
var url = contentURL.href;
|
||||||
var domain = contentURL.hostname;
|
var domain = contentURL.hostname;
|
||||||
var message = "Faked readout on " + url;
|
var message = _("fakedReadout").replace(/\{url\}/g, 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 tab = tabUtils.getTabForId(worker.tab.id);
|
var tab = tabUtils.getTabForId(worker.tab.id);
|
||||||
var tabBrowser = tabUtils.getTabBrowserForTab(tab);
|
var tabBrowser = tabUtils.getTabBrowserForTab(tab);
|
||||||
@ -219,7 +208,7 @@
|
|||||||
// var notifyBox = ownerBrowser.gBrowser.getNotificationBox();
|
// var notifyBox = ownerBrowser.gBrowser.getNotificationBox();
|
||||||
var notifyBox = tabBrowser.getNotificationBox();
|
var notifyBox = tabBrowser.getNotificationBox();
|
||||||
// log(" chrome window", require("sdk/windows").browserWindows);
|
// 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");
|
var notification = notifyBox.getNotificationWithValue("fake-readout");
|
||||||
if (notification){
|
if (notification){
|
||||||
notification.label = message;
|
notification.label = message;
|
||||||
@ -227,7 +216,7 @@
|
|||||||
else {
|
else {
|
||||||
var buttons = [
|
var buttons = [
|
||||||
{
|
{
|
||||||
label: "whitelist URL",
|
label: _("whitelistURL"),
|
||||||
accessKey: "",
|
accessKey: "",
|
||||||
callback: function(){
|
callback: function(){
|
||||||
prefs.whiteList += "," + url;
|
prefs.whiteList += "," + url;
|
||||||
@ -237,7 +226,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "whitelist domain",
|
label: _("whitelistDomain"),
|
||||||
accessKey: "",
|
accessKey: "",
|
||||||
callback: function(){
|
callback: function(){
|
||||||
prefs.whiteList += "," + domain;
|
prefs.whiteList += "," + domain;
|
||||||
|
@ -36,4 +36,10 @@ askForVisibleReadoutPermission= Wollen Sie das Auslesen des rot umrandeten <canv
|
|||||||
askForInvisibleReadoutPermission= Wollen Sie das Auslesen von unsichtbaren <canvas> erlauben?
|
askForInvisibleReadoutPermission= Wollen Sie das Auslesen von unsichtbaren <canvas> erlauben?
|
||||||
|
|
||||||
sourceOutput= Aufrufende Datei
|
sourceOutput= Aufrufende Datei
|
||||||
stackEntryOutput= {url} Zeile {line} Spalte {column}
|
stackEntryOutput= {url} Zeile {line} Spalte {column}
|
||||||
|
|
||||||
|
fakedReadout = Auslese vorgetäuscht auf {url}
|
||||||
|
settings = Einstellungen
|
||||||
|
displayCallingStack = Aufrufestack anzeigen
|
||||||
|
whitelistURL = erlaube URL
|
||||||
|
whitelistDomain = erlaube Domain
|
@ -36,4 +36,11 @@ askForVisibleReadoutPermission= Do you want to allow the readout of the red bord
|
|||||||
askForInvisibleReadoutPermission= Do you want to allow invisible <canvas> readout?
|
askForInvisibleReadoutPermission= Do you want to allow invisible <canvas> readout?
|
||||||
|
|
||||||
sourceOutput= Calling file
|
sourceOutput= Calling file
|
||||||
stackEntryOutput= {url} line {line} column {column}
|
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
|
Loading…
x
Reference in New Issue
Block a user