From 190eb8f9b1e9f7745aa84f2f4d2818a4d06e0bc7 Mon Sep 17 00:00:00 2001 From: ReAlUA Date: Mon, 9 Oct 2017 00:21:59 +0300 Subject: [PATCH] IDE: call translation function for lastLibType MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In menu Sketch/Include Library/ library types (Arduino|Recommended|Contributed) are not translated into selected «Editor language» although types are translated in .po files. --- app/src/processing/app/Base.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java index 477f9313e..073c4cbba 100644 --- a/app/src/processing/app/Base.java +++ b/app/src/processing/app/Base.java @@ -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); }