Traduction

This commit is contained in:
nawfe
2020-04-28 18:29:53 +02:00
parent 853534ce91
commit 502a9fcc62
19 changed files with 64 additions and 61 deletions

View File

@@ -3,6 +3,7 @@ package ihm.controller;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.Locale;
import java.util.ResourceBundle;
import ihm.Musique;
@@ -81,8 +82,10 @@ public class ParametreController implements Initializable {
* }
*/
Pane pane = FXMLLoader.load(getClass().getResource("../ressources/Jouer_tour(3)attaquer.fxml"));
final URL fxmlURL = getClass().getResource("../ressources/Jouer_tour(3)attaquer.fxml");
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.ENGLISH);
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
Pane pane = fxmlLoader.load();
rootPane.getChildren().setAll(pane);