Move panel titles to i18n
This commit is contained in:
parent
f87dc359f5
commit
b0811049b1
2 changed files with 10 additions and 3 deletions
|
@ -19,9 +19,16 @@
|
|||
"message": "Always Open This Site in…",
|
||||
"description": "Menu title"
|
||||
},
|
||||
"alwaysOpenIn": {
|
||||
"message": "Always open in…",
|
||||
"description": "Menu title"
|
||||
},
|
||||
"alwaysOpenSiteInContainer": {
|
||||
"message": "Always Open Site in Container"
|
||||
},
|
||||
"openANewTabIn": {
|
||||
"message" : "Open a New Tab in…"
|
||||
},
|
||||
"openNewTabInThisContainer": {
|
||||
"message" : "Open New Tab in this Container"
|
||||
},
|
||||
|
|
|
@ -920,7 +920,7 @@ Logic.registerPanel(OPEN_NEW_CONTAINER_PICKER, {
|
|||
// This method is called when the panel is shown.
|
||||
prepare() {
|
||||
Logic.listenToPickerBackButton();
|
||||
document.getElementById("picker-title").textContent = "Open a New Tab in";
|
||||
document.getElementById("picker-title").textContent = browser.i18n.getMessage("openANewTabIn");
|
||||
const fragment = document.createDocumentFragment();
|
||||
const pickedFunction = function (identity) {
|
||||
try {
|
||||
|
@ -1104,7 +1104,7 @@ Logic.registerPanel(REOPEN_IN_CONTAINER_PICKER, {
|
|||
// This method is called when the panel is shown.
|
||||
async prepare() {
|
||||
Logic.listenToPickerBackButton();
|
||||
document.getElementById("picker-title").textContent = "Reopen This Site in";
|
||||
document.getElementById("picker-title").textContent = browser.i18n.getMessage("reopenThisSiteIn");
|
||||
const fragment = document.createDocumentFragment();
|
||||
const currentTab = await Utils.currentTab();
|
||||
const pickedFunction = function (identity) {
|
||||
|
@ -1197,7 +1197,7 @@ Logic.registerPanel(ALWAYS_OPEN_IN_PICKER, {
|
|||
// This method is called when the panel is shown.
|
||||
prepare() {
|
||||
Logic.listenToPickerBackButton();
|
||||
document.getElementById("picker-title").textContent = "Always Open in";
|
||||
document.getElementById("picker-title").textContent = browser.i18n.getMessage("alwaysOpenIn");
|
||||
const fragment = document.createDocumentFragment();
|
||||
|
||||
document.getElementById("new-container-div").innerHTML = "";
|
||||
|
|
Loading…
Add table
Reference in a new issue