1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-18 07:52:14 +01:00

Make editor statusline text translatable

This commit is contained in:
Hasso Tepper 2016-01-03 23:41:40 +02:00
parent 00ba7aa68c
commit 531248a474

View File

@ -28,6 +28,7 @@ import javax.swing.JComponent;
import processing.app.helpers.OSUtils;
import processing.app.helpers.PreferencesMap;
import static processing.app.I18n.tr;
/**
@ -105,7 +106,7 @@ public class EditorLineStatus extends JComponent {
g.drawString(text, 6, baseline);
g.setColor(messageForeground);
String tmp = name + " on " + serialport;
String tmp = I18n.format(tr("{0} on {1}"), name, serialport);
Rectangle2D bounds = g.getFontMetrics().getStringBounds(tmp, null);