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
|
// to please eclipse, not supposed to be serialized
|
||||||
private static final long serialVersionUID = 8500214871372184418L;
|
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;
|
MazeComponent maze;
|
||||||
MazeControler controler;
|
MazeControler controler;
|
||||||
@@ -841,6 +841,8 @@ public class Display extends JFrame
|
|||||||
int W = 600;
|
int W = 600;
|
||||||
int H = 400;
|
int H = 400;
|
||||||
|
|
||||||
|
System.out.println("Default Locale " + Locale.getDefault());
|
||||||
|
|
||||||
if ( (pArgs.length > 0) && (pArgs[0].length() > 0))
|
if ( (pArgs.length > 0) && (pArgs[0].length() > 0))
|
||||||
{
|
{
|
||||||
try
|
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
|
width = Largeur
|
||||||
height = hauteur
|
height = Hauteur
|
||||||
depth = profondeur
|
depth = Profondeur
|
||||||
north = nord
|
north = Nord
|
||||||
south = sud
|
south = Sud
|
||||||
east = est
|
east = Est
|
||||||
west = ouest
|
west = Ouest
|
||||||
resolve = résoudre
|
resolve = Résoudre
|
||||||
create = créer
|
create = Créer
|
||||||
save = sauver
|
save = Sauver
|
||||||
quit = quitter
|
quit = Quitter
|
||||||
Reference in New Issue
Block a user