Skip to content

Commit 27b8048

Browse files
author
Shigeru KANEMOTO
committed
"Boards" must be wrapped in _(...) call.
For internationalization, the word "Boards" must be wrapped directly in _(...) call. The call was done in makeOrGetBoardMenu(). However, the second call to makeOrGetBoardMenu() has the argument already wrapped by _(...).
1 parent 74dea07 commit 27b8048

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/src/processing/app/Base.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ public void onBoardOrPortChange() {
11241124
}
11251125

11261126
public void rebuildBoardsMenu(JMenu toolsMenu, final Editor editor) {
1127-
JMenu boardsMenu = makeOrGetBoardMenu(toolsMenu, "Board");
1127+
JMenu boardsMenu = makeOrGetBoardMenu(toolsMenu, _("Board"));
11281128

11291129
String selPackage = Preferences.get("target_package");
11301130
String selPlatform = Preferences.get("target_platform");
@@ -1287,13 +1287,12 @@ private static boolean ifThereAreVisibleItemsOn(JMenu menu) {
12871287
}
12881288

12891289
private JMenu makeOrGetBoardMenu(JMenu toolsMenu, String label) {
1290-
String i18nLabel = _(label);
12911290
for (JMenu menu : Editor.boardsMenus) {
1292-
if (i18nLabel.equals(menu.getText())) {
1291+
if (label.equals(menu.getText())) {
12931292
return menu;
12941293
}
12951294
}
1296-
JMenu menu = new JMenu(i18nLabel);
1295+
JMenu menu = new JMenu(label);
12971296
Editor.boardsMenus.add(menu);
12981297
toolsMenu.add(menu);
12991298
return menu;

0 commit comments

Comments
 (0)