1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-31 20:52:13 +01:00

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.
This commit is contained in:
Cristian Maglie 2020-03-25 12:51:39 +01:00 committed by Cristian Maglie
parent 9b48e8d047
commit 931c2b7f21
2 changed files with 1 additions and 5 deletions

View File

@ -1493,7 +1493,7 @@ public class Base {
if (platformLabel == null)
platformLabel = targetPackage.getId() + "-" + targetPlatform.getId();
JMenu platformBoardsMenu = new JMenu(tr(platformLabel));
JMenu platformBoardsMenu = new JMenu(platformLabel);
MenuScroller.setScrollerFor(platformBoardsMenu);
platformMenus.add(platformBoardsMenu);

View File

@ -106,10 +106,6 @@ public class I18n {
* This method is an hack to extract words with gettext tool.
*/
protected static void unusedStrings() {
// These phrases are defined in the "platform.txt".
tr("Arduino AVR Boards");
tr("Arduino ARM (32-bits) Boards");
// This word is defined in the "boards.txt".
tr("Processor");
}