-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 11-feature-audio-controls-muteunmute
- Loading branch information
Showing
15 changed files
with
161 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| package group07.beatbattle.i18n; | ||
|
|
||
| import com.badlogic.gdx.Gdx; | ||
|
|
||
| /** | ||
| * Simple localization helper. Call {@link #reload()} once at startup and | ||
| * again after the user changes the language in Settings. | ||
| */ | ||
| public final class Strings { | ||
|
|
||
| private static boolean no = false; | ||
|
|
||
| private Strings() {} | ||
|
|
||
| public static void reload() { | ||
| String lang = Gdx.app.getPreferences("settings").getString("language", "EN"); | ||
| no = "NO".equalsIgnoreCase(lang); | ||
| } | ||
|
|
||
| // --- Start screen --- | ||
| public static String createGame() { return no ? "Lag spill" : "Create Game"; } | ||
| public static String joinGame() { return no ? "Bli med i spill" : "Join Game"; } | ||
|
|
||
| // --- Join/Create screen --- | ||
| public static String readyToPlay() { return no ? "Klar til å spille" : "Ready to play"; } | ||
| public static String back() { return no ? "Tilbake" : "Back"; } | ||
| public static String enterName() { return no ? "Skriv inn spillernavn" : "Enter player name"; } | ||
| public static String enterCode() { return no ? "Skriv inn spillkode" : "Enter game code"; } | ||
| public static String gameCode() { return no ? "Spillkode" : "Game Code"; } | ||
| public static String generatingCode(){ return no ? "Genererer spillkode..." : "Generating game code..."; } | ||
| public static String failedCode() { return no ? "Kunne ikke generere spillkode" : "Failed to generate game code"; } | ||
|
|
||
| // --- Lobby --- | ||
| public static String party() { return no ? "Lag" : "Party"; } | ||
| public static String loadingPlayers(){ return no ? "Laster spillere..." : "Loading players..."; } | ||
| public static String noPlayers() { return no ? "Ingen spillere ennå" : "No players yet"; } | ||
| public static String leaveLobby() { return no ? "Forlat lobbyen" : "Leave lobby"; } | ||
| public static String leaveHostMsg() { | ||
| return no | ||
| ? "Å forlate vil slette sesjonen for alle.\nVil du fortsette?" | ||
| : "Leaving will delete the session for everyone.\nDo you want to continue?"; | ||
| } | ||
| public static String leavePlayerMsg() { | ||
| return no | ||
| ? "Er du sikker på at du vil forlate sesjonen?" | ||
| : "Are you sure you want to leave the session?"; | ||
| } | ||
| public static String gameStarting() { return no ? "Spillet starter..." : "Game starting..."; } | ||
| public static String startGame() { return no ? "Start spill" : "Start Game"; } | ||
|
|
||
| // --- Round --- | ||
| public static String nowPlaying() { return no ? "Spiller nå..." : "Now Playing..."; } | ||
|
|
||
| // --- Leaderboard --- | ||
| public static String leaderboard() { return no ? "Ledertavle" : "Leaderboard"; } | ||
| public static String round() { return no ? "Runde" : "Round"; } | ||
| public static String playerCol() { return no ? "Spiller" : "Player"; } | ||
| public static String scoreCol() { return no ? "Poeng" : "Score"; } | ||
| public static String nextRoundIn() { return no ? "Neste runde om " : "Next round in "; } | ||
| public static String finalResultsIn(){ return no ? "Sluttresultater om " : "Final results in "; } | ||
| public static String waitingForHost(){ return no ? "Venter på vert..." : "Waiting for host..."; } | ||
| public static String leaveSession() { return no ? "Forlat sesjonen" : "Leave Session"; } | ||
|
|
||
| // --- Game Over --- | ||
| public static String gameOver() { return no ? "SPILLET ER OVER" : "GAME OVER"; } | ||
| public static String finalStandings(){ return no ? "Sluttresultater" : "Final Standings"; } | ||
| public static String backToMenu() { return no ? "Tilbake til menyen" : "Back to Menu"; } | ||
|
|
||
| // --- Settings --- | ||
| public static String settings() { return no ? "Innstillinger" : "Settings"; } | ||
| public static String apply() { return no ? "Bruk" : "Apply"; } | ||
| public static String numRounds() { return no ? "Antall runder" : "Number of rounds"; } | ||
| public static String language() { return no ? "Språk" : "Language"; } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.