Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 931c2b7

Browse files
committedMar 25, 2020
Do not translate labels of boards submenus
Otherwise it may happen some weird sorting when untraslated and translated labels are sorted together: Arduino megaAVR Boards Arduino nRF52 Board ESP32 Arduino ESP8266 Modules Schede Arduino AVR <-- the localized string falls to the bottom Also there is no way for 3rd party boards developers to actually provide a translation, so let's just remove them.
1 parent 9b48e8d commit 931c2b7

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed
 

‎app/src/processing/app/Base.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,7 @@ public void actionPerformed(ActionEvent actionevent) {
14931493
if (platformLabel == null)
14941494
platformLabel = targetPackage.getId() + "-" + targetPlatform.getId();
14951495

1496-
JMenu platformBoardsMenu = new JMenu(tr(platformLabel));
1496+
JMenu platformBoardsMenu = new JMenu(platformLabel);
14971497
MenuScroller.setScrollerFor(platformBoardsMenu);
14981498
platformMenus.add(platformBoardsMenu);
14991499

‎arduino-core/src/processing/app/I18n.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,6 @@ public static String format(String fmt, Object... args) {
106106
* This method is an hack to extract words with gettext tool.
107107
*/
108108
protected static void unusedStrings() {
109-
// These phrases are defined in the "platform.txt".
110-
tr("Arduino AVR Boards");
111-
tr("Arduino ARM (32-bits) Boards");
112-
113109
// This word is defined in the "boards.txt".
114110
tr("Processor");
115111
}

0 commit comments

Comments
 (0)
Please sign in to comment.