1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-19 08:52:15 +01:00

IDE: call translation function for lastLibType

In menu Sketch/Include Library/ library types (Arduino|Recommended|Contributed) are not translated into selected «Editor language» although types are translated in .po files.
This commit is contained in:
ReAlUA 2017-10-09 00:21:59 +03:00 committed by Cristian Maglie
parent e69ce9cde3
commit 190eb8f9b1

View File

@ -1103,7 +1103,7 @@ public class Base {
importMenu.addSeparator();
}
lastLibType = lib.getTypes().get(0);
JMenuItem platformItem = new JMenuItem(I18n.format(tr("{0} libraries"), lastLibType));
JMenuItem platformItem = new JMenuItem(I18n.format(tr("{0} libraries"), tr(lastLibType)));
platformItem.setEnabled(false);
importMenu.add(platformItem);
}