Skip to content

Commit df23af5

Browse files
committed
Merge branch 'ide-1.5.x' of github.com:arduino/Arduino into ide-1.5.x
2 parents c761fc1 + 16b28ed commit df23af5

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

app/src/processing/app/Base.java

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

11601160
public void rebuildBoardsMenu(JMenu toolsMenu, final Editor editor) {
1161-
JMenu boardsMenu = makeOrGetBoardMenu(toolsMenu, "Board");
1161+
JMenu boardsMenu = makeOrGetBoardMenu(toolsMenu, _("Board"));
11621162

11631163
String selPackage = Preferences.get("target_package");
11641164
String selPlatform = Preferences.get("target_platform");
@@ -1324,13 +1324,12 @@ private static boolean ifThereAreVisibleItemsOn(JMenu menu) {
13241324
}
13251325

13261326
private JMenu makeOrGetBoardMenu(JMenu toolsMenu, String label) {
1327-
String i18nLabel = _(label);
13281327
for (JMenu menu : Editor.boardsMenus) {
1329-
if (i18nLabel.equals(menu.getText())) {
1328+
if (label.equals(menu.getText())) {
13301329
return menu;
13311330
}
13321331
}
1333-
JMenu menu = new JMenu(i18nLabel);
1332+
JMenu menu = new JMenu(label);
13341333
Editor.boardsMenus.add(menu);
13351334
toolsMenu.add(menu);
13361335
return menu;

app/src/processing/app/debug/TargetPlatform.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
*/
2424
package processing.app.debug;
2525

26+
import static processing.app.I18n._;
27+
2628
import java.io.File;
2729
import java.util.HashMap;
2830
import java.util.Map;
@@ -46,6 +48,12 @@ public TargetPlatform(String _name, File _folder) {
4648
programmers = new HashMap<String, PreferencesMap>();
4749
preferences = new PreferencesMap();
4850

51+
if (false) {
52+
// Hack to extract this word by gettext tool.
53+
// This word is actually defined in the "boards.txt".
54+
String notused = _("Processor");
55+
}
56+
4957
try {
5058
File boardsFile = new File(_folder, "boards.txt");
5159
if (boardsFile.exists()) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy