Skip to content

Commit de940b3

Browse files
devvaannshabose
authored andcommitted
fix: add localization for overflow button tooltips
1 parent bc8c938 commit de940b3

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

src/extensionsIntegrated/TabBar/html/tabbar-pane.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
</div>
55

6-
<div id="overflow-button" class="overflow-button" title="Show hidden tabs">
6+
<div id="overflow-button" class="overflow-button">
77
<i class="fa-solid fa-chevron-down"></i>
88
</div>
99
</div>

src/extensionsIntegrated/TabBar/html/tabbar-second-pane.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
</div>
55

6-
<div id="overflow-button-2" class="overflow-button-2" title="Show hidden tabs">
6+
<div id="overflow-button-2" class="overflow-button-2">
77
<i class="fa-solid fa-chevron-down"></i>
88
</div>
99
</div>

src/extensionsIntegrated/TabBar/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ define(function (require, exports, module) {
229229
$tabBar = $(TabBarHTML);
230230
// since we need to add the tab bar before the editor which has .not-editor class
231231
$(".pane-header").after($tabBar);
232+
$("#overflow-button").attr("title", Strings.TABBAR_SHOW_HIDDEN_TABS);
232233
WorkspaceManager.recomputeLayout(true);
233234
updateTabs();
234235
} else if ($paneHeader.length === 2) {
@@ -239,6 +240,8 @@ define(function (require, exports, module) {
239240
// TODO: Fix bug where the tab bar gets hidden inside the editor in horizontal split
240241
$paneHeader.eq(0).after($tabBar);
241242
$paneHeader.eq(1).after($tabBar2);
243+
$("#overflow-button").attr("title", Strings.TABBAR_SHOW_HIDDEN_TABS);
244+
$("#overflow-button-2").attr("title", Strings.TABBAR_SHOW_HIDDEN_TABS);
242245
WorkspaceManager.recomputeLayout(true);
243246
updateTabs();
244247
}

src/nls/root/strings.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,6 +1309,7 @@ define({
13091309
"DESCRIPTION_TABBAR": "Set the tab bar settings.",
13101310
"DESCRIPTION_SHOW_TABBAR": "true to show the tab bar, else false.",
13111311
"DESCRIPTION_NUMBER_OF_TABS": "The number of tabs to show in the tab bar. Set to -1 to show all tabs",
1312+
"TABBAR_SHOW_HIDDEN_TABS": "Show hidden tabs",
13121313

13131314
// Git extension
13141315
"ENABLE_GIT": "Enable Git",

0 commit comments

Comments
 (0)