mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-20 21:01:25 +03:00
Merge branch 'ide-1.5.x' of github.com:arduino/Arduino into ide-1.5.x
This commit is contained in:
@ -1158,7 +1158,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");
|
||||||
@ -1324,13 +1324,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;
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
*/
|
*/
|
||||||
package processing.app.debug;
|
package processing.app.debug;
|
||||||
|
|
||||||
|
import static processing.app.I18n._;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -46,6 +48,12 @@ public class TargetPlatform {
|
|||||||
programmers = new HashMap<String, PreferencesMap>();
|
programmers = new HashMap<String, PreferencesMap>();
|
||||||
preferences = new PreferencesMap();
|
preferences = new PreferencesMap();
|
||||||
|
|
||||||
|
if (false) {
|
||||||
|
// Hack to extract this word by gettext tool.
|
||||||
|
// This word is actually defined in the "boards.txt".
|
||||||
|
String notused = _("Processor");
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
File boardsFile = new File(_folder, "boards.txt");
|
File boardsFile = new File(_folder, "boards.txt");
|
||||||
if (boardsFile.exists()) {
|
if (boardsFile.exists()) {
|
||||||
|
Reference in New Issue
Block a user