uses default locale
only french and english supported
This commit is contained in:
@@ -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
|
||||
|
||||
11
lang/LabelsBundle.properties
Normal file
11
lang/LabelsBundle.properties
Normal file
@@ -0,0 +1,11 @@
|
||||
width = Width
|
||||
height = Height
|
||||
depth = Depth
|
||||
north = North
|
||||
south = South
|
||||
east = East
|
||||
west = West
|
||||
resolve = Resolve
|
||||
create = Create
|
||||
save = Save
|
||||
quit = Quit
|
||||
@@ -1,11 +1,11 @@
|
||||
width = largeur
|
||||
height = hauteur
|
||||
depth = profondeur
|
||||
north = nord
|
||||
south = sud
|
||||
east = est
|
||||
west = ouest
|
||||
resolve = résoudre
|
||||
create = créer
|
||||
save = sauver
|
||||
quit = quitter
|
||||
width = Largeur
|
||||
height = Hauteur
|
||||
depth = Profondeur
|
||||
north = Nord
|
||||
south = Sud
|
||||
east = Est
|
||||
west = Ouest
|
||||
resolve = Résoudre
|
||||
create = Créer
|
||||
save = Sauver
|
||||
quit = Quitter
|
||||
Reference in New Issue
Block a user