Skip to content

Commit 531248a

Browse files
committed
Make editor statusline text translatable
1 parent 00ba7aa commit 531248a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/processing/app/EditorLineStatus.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
import processing.app.helpers.OSUtils;
3030
import processing.app.helpers.PreferencesMap;
31+
import static processing.app.I18n.tr;
3132

3233

3334
/**
@@ -105,7 +106,7 @@ public void paintComponent(Graphics g) {
105106
g.drawString(text, 6, baseline);
106107

107108
g.setColor(messageForeground);
108-
String tmp = name + " on " + serialport;
109+
String tmp = I18n.format(tr("{0} on {1}"), name, serialport);
109110

110111
Rectangle2D bounds = g.getFontMetrics().getStringBounds(tmp, null);
111112

0 commit comments

Comments
 (0)