Skip to content

Commit 1247b23

Browse files
author
Federico Fissore
committed
yet another fix to I18N
see arduino#1170
1 parent b56034e commit 1247b23

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/processing/app/Preferences.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ static protected void init(String commandLinePrefs) {
213213
}
214214

215215
// set some runtime constants (not saved on preferences file)
216-
table.put("runtime.os", PConstants.platformNames[PApplet.platform]);
217216
File hardwareFolder = Base.getHardwareFolder();
218217
table.put("runtime.hardware.path", hardwareFolder.getAbsolutePath());
219218
table.put("runtime.ide.path", hardwareFolder.getParentFile().getAbsolutePath());
@@ -277,6 +276,9 @@ static protected void init(String commandLinePrefs) {
277276
// load the I18n module for internationalization
278277
I18n.init(Preferences.get("editor.languages.current"));
279278

279+
// set some other runtime constants (not saved on preferences file)
280+
table.put("runtime.os", PConstants.platformNames[PApplet.platform]);
281+
280282
// other things that have to be set explicitly for the defaults
281283
setColor("run.window.bgcolor", SystemColor.control);
282284
}

0 commit comments

Comments
 (0)