Skip to content

Commit 1d8855c

Browse files
committed
chore: localize the strings
1 parent d09c630 commit 1d8855c

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

src/nls/root/strings.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,6 +1251,9 @@ define({
12511251
"REFERENCES_NO_RESULTS": "No References available for current cursor position",
12521252
"REFERENCES_PANEL_TITLE": "References",
12531253
"SEARCH_RESULTS_PANEL_TITLE": "Search Results",
1254+
"BOTTOM_PANEL_HIDE": "Hide Panel",
1255+
"BOTTOM_PANEL_SHOW": "Show Bottom Panel",
1256+
"BOTTOM_PANEL_HIDE_TOGGLE": "Hide Bottom Panel",
12541257

12551258
"CMD_FIND_DOCUMENT_SYMBOLS": "Find Document Symbols",
12561259
"CMD_FIND_PROJECT_SYMBOLS": "Find Project Symbols",

src/view/WorkspaceManager.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ define(function (require, exports, module) {
4141
KeyBindingManager = require("command/KeyBindingManager"),
4242
Resizer = require("utils/Resizer"),
4343
AnimationUtils = require("utils/AnimationUtils"),
44+
Strings = require("strings"),
4445
PluginPanelView = require("view/PluginPanelView"),
4546
PanelView = require("view/PanelView"),
4647
EditorManager = require("editor/EditorManager"),
@@ -293,7 +294,7 @@ define(function (require, exports, module) {
293294
let isActive = (panelId === _activeBottomPanelId);
294295
let $tab = $('<div class="bottom-panel-tab' + (isActive ? ' active' : '') + '" data-panel-id="' + panelId + '">' +
295296
'<span class="bottom-panel-tab-title">' + $("<span>").text(title).html() + '</span>' +
296-
'<span class="bottom-panel-tab-close-btn" title="Close">&times;</span>' +
297+
'<span class="bottom-panel-tab-close-btn" title="' + Strings.CLOSE + '">&times;</span>' +
297298
'</div>');
298299
$bottomPanelTabsOverflow.append($tab);
299300
});
@@ -541,7 +542,7 @@ define(function (require, exports, module) {
541542
$bottomPanelTabsOverflow = $('<div class="bottom-panel-tabs-overflow"></div>');
542543
let $tabBarActions = $('<div class="bottom-panel-tab-bar-actions"></div>');
543544
$tabBarActions.append(
544-
'<span class="bottom-panel-hide-btn" title="Hide Panel"><i class="fa-solid fa-chevron-down"></i></span>'
545+
'<span class="bottom-panel-hide-btn" title="' + Strings.BOTTOM_PANEL_HIDE + '"><i class="fa-solid fa-chevron-down"></i></span>'
545546
);
546547
$bottomPanelTabBar.append($bottomPanelTabsOverflow);
547548
$bottomPanelTabBar.append($tabBarActions);
@@ -551,7 +552,7 @@ define(function (require, exports, module) {
551552

552553
// Create status bar chevron toggle for bottom panel
553554
$statusBarPanelToggle = $(
554-
'<div id="status-panel-toggle" class="indicator global-indicator" title="Show Bottom Panel">' +
555+
'<div id="status-panel-toggle" class="indicator global-indicator" title="' + Strings.BOTTOM_PANEL_SHOW + '">' +
555556
'<i class="fa-solid fa-chevron-up"></i>' +
556557
'</div>'
557558
);
@@ -580,7 +581,7 @@ define(function (require, exports, module) {
580581
$statusBarPanelToggle.find("i")
581582
.removeClass("fa-chevron-down")
582583
.addClass("fa-chevron-up");
583-
$statusBarPanelToggle.attr("title", "Show Bottom Panel");
584+
$statusBarPanelToggle.attr("title", Strings.BOTTOM_PANEL_SHOW);
584585
if (!_statusBarToggleInProgress) {
585586
AnimationUtils.animateUsingClass($statusBarPanelToggle[0], "flash", 800);
586587
}
@@ -590,7 +591,7 @@ define(function (require, exports, module) {
590591
$statusBarPanelToggle.find("i")
591592
.removeClass("fa-chevron-up")
592593
.addClass("fa-chevron-down");
593-
$statusBarPanelToggle.attr("title", "Hide Bottom Panel");
594+
$statusBarPanelToggle.attr("title", Strings.BOTTOM_PANEL_HIDE_TOGGLE);
594595
if (!_statusBarToggleInProgress) {
595596
AnimationUtils.animateUsingClass($statusBarPanelToggle[0], "flash", 800);
596597
}

0 commit comments

Comments
 (0)