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",
"description": ""
},
"options_title": {
"message": "CanvasBlocker Einstellungen",
"description": ""
},
"optionsIntroduction": {
"message": "Auf dieser Seite können Sie die CanvasBlocker-Einstellungen anpassen.",
"description": ""

View File

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

View File

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