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 @@ -1124,7 +1124,7 @@ public void onBoardOrPortChange() {
1124
1124
}
1125
1125
1126
1126
public void rebuildBoardsMenu (JMenu toolsMenu , final Editor editor ) {
1127
- JMenu boardsMenu = makeOrGetBoardMenu (toolsMenu , "Board" );
1127
+ JMenu boardsMenu = makeOrGetBoardMenu (toolsMenu , _ ( "Board" ) );
1128
1128
1129
1129
String selPackage = Preferences .get ("target_package" );
1130
1130
String selPlatform = Preferences .get ("target_platform" );
@@ -1287,13 +1287,12 @@ private static boolean ifThereAreVisibleItemsOn(JMenu menu) {
1287
1287
}
1288
1288
1289
1289
private JMenu makeOrGetBoardMenu (JMenu toolsMenu , String label ) {
1290
- String i18nLabel = _ (label );
1291
1290
for (JMenu menu : Editor .boardsMenus ) {
1292
- if (i18nLabel .equals (menu .getText ())) {
1291
+ if (label .equals (menu .getText ())) {
1293
1292
return menu ;
1294
1293
}
1295
1294
}
1296
- JMenu menu = new JMenu (i18nLabel );
1295
+ JMenu menu = new JMenu (label );
1297
1296
Editor .boardsMenus .add (menu );
1298
1297
toolsMenu .add (menu );
1299
1298
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