mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-20 21:01:25 +03:00
Revert to English locale if the system default is not available
See #1525
This commit is contained in:
committed by
Federico Fissore
parent
4cbd435163
commit
33a177260e
@ -270,8 +270,8 @@ public class Preferences {
|
||||
try {
|
||||
I18n.init(Preferences.get("editor.languages.current"));
|
||||
} catch (MissingResourceException e) {
|
||||
I18n.init("");
|
||||
Preferences.set("editor.languages.current", "");
|
||||
I18n.init("en");
|
||||
Preferences.set("editor.languages.current", "en");
|
||||
}
|
||||
|
||||
// set some other runtime constants (not saved on preferences file)
|
||||
|
Reference in New Issue
Block a user