diff --git a/locale/da-DK/treestyletab/treestyletab.properties b/locale/da-DK/treestyletab/treestyletab.properties index 07170ed8..b0bdc0dc 100644 --- a/locale/da-DK/treestyletab/treestyletab.properties +++ b/locale/da-DK/treestyletab/treestyletab.properties @@ -55,4 +55,5 @@ compatibility_STM_warning_use_STM=Åben faner som indstillet i Super Tab Mode compatibility_STM_warning_never=Spørg ikke igen. -closeTabsToTheEnd_vertical=Close Tabs to the Bottom +closeTabsToTheEnd_vertical_label=Close Tabs to the Bottom +closeTabsToTheEnd_vertical_accesskey=b diff --git a/locale/de-DE/treestyletab/treestyletab.properties b/locale/de-DE/treestyletab/treestyletab.properties index f4a9409c..8bfe43b7 100644 --- a/locale/de-DE/treestyletab/treestyletab.properties +++ b/locale/de-DE/treestyletab/treestyletab.properties @@ -60,4 +60,5 @@ compatibility_STM_warning_use_STM=Für die Tabs die durch Super Tab Mode festgel compatibility_STM_warning_never=Diesen Dialog nicht mehr anzeigen -closeTabsToTheEnd_vertical=Close Tabs to the Bottom +closeTabsToTheEnd_vertical_label=Close Tabs to the Bottom +closeTabsToTheEnd_vertical_accesskey=b diff --git a/locale/en-US/treestyletab/treestyletab.properties b/locale/en-US/treestyletab/treestyletab.properties index 5e89ef76..43484957 100644 --- a/locale/en-US/treestyletab/treestyletab.properties +++ b/locale/en-US/treestyletab/treestyletab.properties @@ -51,4 +51,5 @@ compatibility_STM_warning_use_STM=Put tabs to the position specified by Super Ta compatibility_STM_warning_never=Don't show this dialo anymore. -closeTabsToTheEnd_vertical=Close Tabs to the Bottom +closeTabsToTheEnd_vertical_label=Close Tabs to the Bottom +closeTabsToTheEnd_vertical_accesskey=b diff --git a/locale/es-ES/treestyletab/treestyletab.properties b/locale/es-ES/treestyletab/treestyletab.properties index 3b69eb48..f9b6be52 100644 --- a/locale/es-ES/treestyletab/treestyletab.properties +++ b/locale/es-ES/treestyletab/treestyletab.properties @@ -60,4 +60,5 @@ compatibility_STM_warning_use_STM=Put tabs to the position specified by Super Ta compatibility_STM_warning_never=Don't show this dialo anymore. -closeTabsToTheEnd_vertical=Close Tabs to the Bottom +closeTabsToTheEnd_vertical_label=Close Tabs to the Bottom +closeTabsToTheEnd_vertical_accesskey=b diff --git a/locale/fr-FR/treestyletab/treestyletab.properties b/locale/fr-FR/treestyletab/treestyletab.properties index 84182a51..250b4a50 100644 --- a/locale/fr-FR/treestyletab/treestyletab.properties +++ b/locale/fr-FR/treestyletab/treestyletab.properties @@ -60,4 +60,5 @@ compatibility_STM_warning_use_STM=Mettre ces onglets dans la position définie p compatibility_STM_warning_never=Ne plus montrer ce dialogue. -closeTabsToTheEnd_vertical=Close Tabs to the Bottom +closeTabsToTheEnd_vertical_label=Close Tabs to the Bottom +closeTabsToTheEnd_vertical_accesskey=b diff --git a/locale/it-IT/treestyletab/treestyletab.properties b/locale/it-IT/treestyletab/treestyletab.properties index e0521825..b7a8ddca 100644 --- a/locale/it-IT/treestyletab/treestyletab.properties +++ b/locale/it-IT/treestyletab/treestyletab.properties @@ -60,4 +60,5 @@ compatibility_STM_warning_use_STM=Put tabs to the position specified by Super Ta compatibility_STM_warning_never=Don't show this dialo anymore. -closeTabsToTheEnd_vertical=Close Tabs to the Bottom +closeTabsToTheEnd_vertical_label=Close Tabs to the Bottom +closeTabsToTheEnd_vertical_accesskey=b diff --git a/locale/ja/treestyletab/treestyletab.properties b/locale/ja/treestyletab/treestyletab.properties index 3a225d0c..38b9763d 100644 --- a/locale/ja/treestyletab/treestyletab.properties +++ b/locale/ja/treestyletab/treestyletab.properties @@ -51,4 +51,5 @@ compatibility_STM_warning_use_STM=Super Tab Modeで指定した位置にタブ compatibility_STM_warning_never=今後この確認を表示しない -closeTabsToTheEnd_vertical=下のタブをすべて閉じる +closeTabsToTheEnd_vertical_label=下のタブをすべて閉じる +closeTabsToTheEnd_vertical_accesskey=b diff --git a/locale/pl/treestyletab/treestyletab.properties b/locale/pl/treestyletab/treestyletab.properties index 442d0e6e..1957524e 100644 --- a/locale/pl/treestyletab/treestyletab.properties +++ b/locale/pl/treestyletab/treestyletab.properties @@ -60,4 +60,5 @@ compatibility_STM_warning_use_STM=Put tabs to the position specified by Super Ta compatibility_STM_warning_never=Don't show this dialo anymore. -closeTabsToTheEnd_vertical=Close Tabs to the Bottom +closeTabsToTheEnd_vertical_label=Close Tabs to the Bottom +closeTabsToTheEnd_vertical_accesskey=b diff --git a/locale/ru/treestyletab/treestyletab.properties b/locale/ru/treestyletab/treestyletab.properties index 7aa69eb5..c6a3453b 100755 --- a/locale/ru/treestyletab/treestyletab.properties +++ b/locale/ru/treestyletab/treestyletab.properties @@ -51,4 +51,5 @@ compatibility_STM_warning_use_STM=Поместить вкладки в пози compatibility_STM_warning_never=Больше не показывать этот диалог. -closeTabsToTheEnd_vertical=Close Tabs to the Bottom +closeTabsToTheEnd_vertical_label=Close Tabs to the Bottom +closeTabsToTheEnd_vertical_accesskey=b diff --git a/locale/sv-SE/treestyletab/treestyletab.properties b/locale/sv-SE/treestyletab/treestyletab.properties index 2d1b4cb2..5d6c1f3e 100644 --- a/locale/sv-SE/treestyletab/treestyletab.properties +++ b/locale/sv-SE/treestyletab/treestyletab.properties @@ -55,4 +55,5 @@ compatibility_STM_warning_use_STM=Placera flikar på den position som anges av S compatibility_STM_warning_never=Visa inte denna dialog igen. -closeTabsToTheEnd_vertical=Close Tabs to the Bottom +closeTabsToTheEnd_vertical_label=Close Tabs to the Bottom +closeTabsToTheEnd_vertical_accesskey=b diff --git a/locale/zh-CN/treestyletab/treestyletab.properties b/locale/zh-CN/treestyletab/treestyletab.properties index ca38a513..2f9182bf 100644 --- a/locale/zh-CN/treestyletab/treestyletab.properties +++ b/locale/zh-CN/treestyletab/treestyletab.properties @@ -55,4 +55,5 @@ compatibility_STM_warning_use_STM=让 Super Tab Mode 控制新标签的位置。 compatibility_STM_warning_never=不要再提醒我。 -closeTabsToTheEnd_vertical=Close Tabs to the Bottom +closeTabsToTheEnd_vertical_label=Close Tabs to the Bottom +closeTabsToTheEnd_vertical_accesskey=b diff --git a/locale/zh-TW/treestyletab/treestyletab.properties b/locale/zh-TW/treestyletab/treestyletab.properties index ecf1dc2b..aa11be1a 100644 --- a/locale/zh-TW/treestyletab/treestyletab.properties +++ b/locale/zh-TW/treestyletab/treestyletab.properties @@ -55,4 +55,5 @@ compatibility_STM_warning_use_STM=讓 Super Tab Mode 處理 compatibility_STM_warning_never=不要再問我 -closeTabsToTheEnd_vertical=Close Tabs to the Bottom +closeTabsToTheEnd_vertical_label=Close Tabs to the Bottom +closeTabsToTheEnd_vertical_accesskey=b diff --git a/modules/browser.js b/modules/browser.js index 7518a23e..bfeeb0ef 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -854,8 +854,10 @@ TreeStyleTabBrowser.prototype = { }, 0, this, b, tabContextMenu); let closeTabsToEnd = d.getElementById(this.kMENUITEM_CLOSE_TABS_TO_END); - if (closeTabsToEnd) + if (closeTabsToEnd) { this._closeTabsToEnd_horizontalLabel = closeTabsToEnd.getAttribute('label'); + this._closeTabsToEnd_horizontalAccesskey = closeTabsToEnd.getAttribute('accesskey'); + } } var removeTabItem = d.getAnonymousElementByAttribute(b, 'id', 'context_closeTab'); @@ -4693,10 +4695,17 @@ TreeStyleTabBrowser.prototype = { let closeTabsToEnd = aEvent.currentTarget.querySelector('*[id^="'+this.kMENUITEM_CLOSE_TABS_TO_END+'"]'); if (closeTabsToEnd) { // https://bugzilla.mozilla.org/show_bug.cgi?id=866880 - let label = this.isVertical ? - utils.treeBundle.getString('closeTabsToTheEnd_vertical') : - this._closeTabsToEnd_horizontalLabel ; + let label, accesskey; + if (this.isVertical) { + label = utils.treeBundle.getString('closeTabsToTheEnd_vertical_label'); + accesskey = utils.treeBundle.getString('closeTabsToTheEnd_vertical_accesskey'); + } + else { + label = this._closeTabsToEnd_horizontalLabel; + accesskey = this._closeTabsToEnd_horizontalAccesskey; + } closeTabsToEnd.setAttribute('label', label); + closeTabsToEnd.setAttribute('accesskey', accesskey); } },