1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-06-08 06:17:47 +02:00

Added translation to options page title.

This commit is contained in:
kkapsner 2019-02-27 23:11:18 +01:00
parent 7bf1b2e595
commit ba0f25badc
3 changed files with 9 additions and 0 deletions

View File

@ -51,6 +51,10 @@
"message": "Einstellungen", "message": "Einstellungen",
"description": "" "description": ""
}, },
"options_title": {
"message": "CanvasBlocker Einstellungen",
"description": ""
},
"optionsIntroduction": { "optionsIntroduction": {
"message": "Auf dieser Seite können Sie die CanvasBlocker-Einstellungen anpassen.", "message": "Auf dieser Seite können Sie die CanvasBlocker-Einstellungen anpassen.",
"description": "" "description": ""

View File

@ -56,6 +56,10 @@
"message": "Settings", "message": "Settings",
"description": "" "description": ""
}, },
"options_title": {
"message": "CanvasBlocker settings",
"description": ""
},
"optionsIntroduction": { "optionsIntroduction": {
"message": "On this page you can adjust the settings of CanvasBlocker.", "message": "On this page you can adjust the settings of CanvasBlocker.",
"description": "" "description": ""

View File

@ -107,6 +107,7 @@
}).then(function(tabId){ }).then(function(tabId){
return browser.tabs.get(tabId); return browser.tabs.get(tabId);
}).then(function(tab){ }).then(function(tab){
document.querySelector("head title").textContent = browser.i18n.getMessage("options_title");
let head = document.createElement("header"); let head = document.createElement("header");
document.body.insertBefore(head, document.body.firstChild); document.body.insertBefore(head, document.body.firstChild);