mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-19 13:54:23 +01:00
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
This commit is contained in:
parent
71a615c65d
commit
1daeba6fd6
@ -127,10 +127,10 @@ public class SerialMonitor extends JFrame implements MessageConsumer {
|
||||
|
||||
serialRates = new JComboBox();
|
||||
for (int i = 0; i < serialRateStrings.length; i++)
|
||||
serialRates.addItem(serialRateStrings[i] + _(" baud"));
|
||||
serialRates.addItem(serialRateStrings[i] + " " + _("baud"));
|
||||
|
||||
serialRate = Preferences.getInteger("serial.debug_rate");
|
||||
serialRates.setSelectedItem(serialRate + _(" baud"));
|
||||
serialRates.setSelectedItem(serialRate + " " + _("baud"));
|
||||
serialRates.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent event) {
|
||||
String wholeString = (String) serialRates.getSelectedItem();
|
||||
|
Loading…
x
Reference in New Issue
Block a user