File tree 2 files changed +11
-4
lines changed 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -1158,7 +1158,7 @@ public void onBoardOrPortChange() {
1158
1158
}
1159
1159
1160
1160
public void rebuildBoardsMenu (JMenu toolsMenu , final Editor editor ) {
1161
- JMenu boardsMenu = makeOrGetBoardMenu (toolsMenu , "Board" );
1161
+ JMenu boardsMenu = makeOrGetBoardMenu (toolsMenu , _ ( "Board" ) );
1162
1162
1163
1163
String selPackage = Preferences .get ("target_package" );
1164
1164
String selPlatform = Preferences .get ("target_platform" );
@@ -1324,13 +1324,12 @@ private static boolean ifThereAreVisibleItemsOn(JMenu menu) {
1324
1324
}
1325
1325
1326
1326
private JMenu makeOrGetBoardMenu (JMenu toolsMenu , String label ) {
1327
- String i18nLabel = _ (label );
1328
1327
for (JMenu menu : Editor .boardsMenus ) {
1329
- if (i18nLabel .equals (menu .getText ())) {
1328
+ if (label .equals (menu .getText ())) {
1330
1329
return menu ;
1331
1330
}
1332
1331
}
1333
- JMenu menu = new JMenu (i18nLabel );
1332
+ JMenu menu = new JMenu (label );
1334
1333
Editor .boardsMenus .add (menu );
1335
1334
toolsMenu .add (menu );
1336
1335
return menu ;
Original file line number Diff line number Diff line change 23
23
*/
24
24
package processing .app .debug ;
25
25
26
+ import static processing .app .I18n ._ ;
27
+
26
28
import java .io .File ;
27
29
import java .util .HashMap ;
28
30
import java .util .Map ;
@@ -46,6 +48,12 @@ public TargetPlatform(String _name, File _folder) {
46
48
programmers = new HashMap <String , PreferencesMap >();
47
49
preferences = new PreferencesMap ();
48
50
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
+
49
57
try {
50
58
File boardsFile = new File (_folder , "boards.txt" );
51
59
if (boardsFile .exists ()) {
You can’t perform that action at this time.
0 commit comments