Skip to content

Commit 1daeba6

Browse files
committed
Don't translate space separating baud rate from "baud".
This prevents an error in which translations which omitted the space would cause an exception (because the code tries to split the string on space). http://code.google.com/p/arduino/issues/detail?id=964
1 parent 71a615c commit 1daeba6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/processing/app/SerialMonitor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ public void actionPerformed(ActionEvent event) {
127127

128128
serialRates = new JComboBox();
129129
for (int i = 0; i < serialRateStrings.length; i++)
130-
serialRates.addItem(serialRateStrings[i] + _(" baud"));
130+
serialRates.addItem(serialRateStrings[i] + " " + _("baud"));
131131

132132
serialRate = Preferences.getInteger("serial.debug_rate");
133-
serialRates.setSelectedItem(serialRate + _(" baud"));
133+
serialRates.setSelectedItem(serialRate + " " + _("baud"));
134134
serialRates.addActionListener(new ActionListener() {
135135
public void actionPerformed(ActionEvent event) {
136136
String wholeString = (String) serialRates.getSelectedItem();

0 commit comments

Comments
 (0)