Chore/42 translate multiple client components to english #225

Merged
jona.walpert merged 2 commits from chore/42-translate-multiple-client-components-to-english into main 2026-04-01 14:26:51 +02:00
5 changed files with 21 additions and 33 deletions
Showing only changes of commit 983f2cca5e - Show all commits
@@ -8,11 +8,9 @@ import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
/**
* Entry point for the Casono client application. Handles client startup and
* connection parameters.
* Entry point for the Casono client application. Handles client startup and connection parameters.
*
* <p>
* Default constructor for the application.
* <p>Default constructor for the application.
*/
public class ClientApp {
@@ -6,8 +6,7 @@ import javafx.application.Application;
/**
* Launcher for the Casono main UI.
*
* <p>
* Default constructor for the application.
* <p>Default constructor for the application.
*/
public class Launcher {
@@ -10,8 +10,7 @@ import javafx.stage.Stage;
/**
* JavaFX Application class for the Casono main UI.
*
* <p>
* Default constructor for the application.
* <p>Default constructor for the application.
*/
public class Casinomainui extends Application {
@@ -31,10 +30,12 @@ public class Casinomainui extends Application {
* @throws IOException If loading the FXML fails.
*/
public void start(Stage stage) throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/ui-structure/Casinomainui.fxml"));
FXMLLoader fxmlLoader =
new FXMLLoader(getClass().getResource("/ui-structure/Casinomainui.fxml"));
Scene scene = new Scene(fxmlLoader.load(), SCENE_WIDTH, SCENE_HEIGHT);
stage.setTitle("Casono");
javafx.scene.image.Image icon = new javafx.scene.image.Image(
javafx.scene.image.Image icon =
new javafx.scene.image.Image(
getClass().getResource("/images/logoinverted.png").toExternalForm());
stage.getIcons().add(icon);
stage.setScene(scene);
@@ -12,27 +12,17 @@ import javafx.scene.shape.Rectangle;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
/**
* Controller for the Casono main UI lobby. Handles UI initialization and user
* actions.
*/
/** Controller for the Casono main UI lobby. Handles UI initialization and user actions. */
public class CasinomainuiController {
private static final Logger LOGGER = LogManager.getLogger(CasinomainuiController.class);
@FXML
private AnchorPane rootPane;
@FXML
private Label titleLabel;
@FXML
private Label subtitleLabel;
@FXML
private ImageView logoView;
@FXML
private Rectangle greenBox;
@FXML
private Button exitbutton;
@FXML
private VBox casinoTable;
@FXML private AnchorPane rootPane;
@FXML private Label titleLabel;
@FXML private Label subtitleLabel;
@FXML private ImageView logoView;
@FXML private Rectangle greenBox;
@FXML private Button exitbutton;
@FXML private VBox casinoTable;
private LobbyButtonTranslationManager translationManager;
private LobbyButtonGridManager gridManager;
@@ -51,7 +41,8 @@ public class CasinomainuiController {
logoView.setImage(new Image(getClass().getResource("/images/logo.png").toExternalForm()));
translationManager = LobbyButtonTranslationManager.getInstance();
gridManager = new LobbyButtonGridManager(new javafx.scene.layout.GridPane(), translationManager);
gridManager =
new LobbyButtonGridManager(new javafx.scene.layout.GridPane(), translationManager);
casinoTable.getChildren().clear();
casinoTable.getChildren().add(gridManager.getGridPane());
gridManager.renderLobbyButtons();
@@ -4,8 +4,7 @@ import java.util.HashMap;
import java.util.Map;
/**
* Manages the mapping between Button IDs and Lobby IDs in memory only. No file
* operations,
* Manages the mapping between Button IDs and Lobby IDs in memory only. No file operations,
* runtime-only data structure.
*/
public class LobbyButtonTranslationManager {