mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-14 11:29:26 +01:00
"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 _(...).
This commit is contained in:
parent
74dea07f2c
commit
27b8048fc6
@ -1124,7 +1124,7 @@ public class Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void rebuildBoardsMenu(JMenu toolsMenu, final Editor editor) {
|
public void rebuildBoardsMenu(JMenu toolsMenu, final Editor editor) {
|
||||||
JMenu boardsMenu = makeOrGetBoardMenu(toolsMenu, "Board");
|
JMenu boardsMenu = makeOrGetBoardMenu(toolsMenu, _("Board"));
|
||||||
|
|
||||||
String selPackage = Preferences.get("target_package");
|
String selPackage = Preferences.get("target_package");
|
||||||
String selPlatform = Preferences.get("target_platform");
|
String selPlatform = Preferences.get("target_platform");
|
||||||
@ -1287,13 +1287,12 @@ public class Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private JMenu makeOrGetBoardMenu(JMenu toolsMenu, String label) {
|
private JMenu makeOrGetBoardMenu(JMenu toolsMenu, String label) {
|
||||||
String i18nLabel = _(label);
|
|
||||||
for (JMenu menu : Editor.boardsMenus) {
|
for (JMenu menu : Editor.boardsMenus) {
|
||||||
if (i18nLabel.equals(menu.getText())) {
|
if (label.equals(menu.getText())) {
|
||||||
return menu;
|
return menu;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
JMenu menu = new JMenu(i18nLabel);
|
JMenu menu = new JMenu(label);
|
||||||
Editor.boardsMenus.add(menu);
|
Editor.boardsMenus.add(menu);
|
||||||
toolsMenu.add(menu);
|
toolsMenu.add(menu);
|
||||||
return menu;
|
return menu;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user