Skip to content

Commit e003049

Browse files
committed
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 55fa3f5 commit e003049

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)
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