uses default locale

only french and english supported
This commit is contained in:
philippe lhardy
2017-11-18 22:00:26 +01:00
parent 2e5095372a
commit fa0c705fd1
3 changed files with 25 additions and 12 deletions

View File

@@ -49,7 +49,7 @@ public class Display extends JFrame
// to please eclipse, not supposed to be serialized
private static final long serialVersionUID = 8500214871372184418L;
final static ResourceBundle labels = ResourceBundle.getBundle("LabelsBundle", Locale.FRENCH, Display.class.getClassLoader(), new UTF8Control());
final static ResourceBundle labels = ResourceBundle.getBundle("LabelsBundle", Locale.getDefault(), Display.class.getClassLoader(), new UTF8Control());
MazeComponent maze;
MazeControler controler;
@@ -841,6 +841,8 @@ public class Display extends JFrame
int W = 600;
int H = 400;
System.out.println("Default Locale " + Locale.getDefault());
if ( (pArgs.length > 0) && (pArgs[0].length() > 0))
{
try