Use vertical tab bar specific accesskey for "Close Tabs to Bottom"
This commit is contained in:
parent
477d1a886b
commit
fd071ba859
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user