From 3384b21177a160f7192a2e4877eea3b29880bf4e Mon Sep 17 00:00:00 2001 From: Hop311 Date: Thu, 30 Mar 2023 14:04:58 +0100 Subject: Added Localisation (#77) * Added Localisation * Removed `.gdignore`s. * Localisation dir path and Locale name cleanup * Incomplete entry warnings + README --- game/localisation/README.md | 16 ++++++++++ game/localisation/en_GB/menus.csv | 52 ++++++++++++++++++++++++++++++++ game/localisation/en_GB/menus.csv.import | 3 ++ game/localisation/en_US/menus.csv | 52 ++++++++++++++++++++++++++++++++ game/localisation/en_US/menus.csv.import | 3 ++ game/localisation/fr_FR/menus.csv | 52 ++++++++++++++++++++++++++++++++ game/localisation/fr_FR/menus.csv.import | 3 ++ 7 files changed, 181 insertions(+) create mode 100644 game/localisation/README.md create mode 100644 game/localisation/en_GB/menus.csv create mode 100644 game/localisation/en_GB/menus.csv.import create mode 100644 game/localisation/en_US/menus.csv create mode 100644 game/localisation/en_US/menus.csv.import create mode 100644 game/localisation/fr_FR/menus.csv create mode 100644 game/localisation/fr_FR/menus.csv.import (limited to 'game/localisation') diff --git a/game/localisation/README.md b/game/localisation/README.md new file mode 100644 index 0000000..401517f --- /dev/null +++ b/game/localisation/README.md @@ -0,0 +1,16 @@ +# Localisation + +This folder contains localisations for in-game text. Each sub-folder must be named with a standard locale code, e.g. `en_GB`, to which the localisations contained within it shall apply (Godot's supported locale codes are listed [here](https://docs.godotengine.org/en/latest/tutorials/i18n/locales.html)). These folders contain `.csv` files where each line is interpreted as a key-value pair. Empty lines allow for spacing out/separating sections, and any further entries beyond the first two on a line are ignored, which can be used to add comments at the end of lines. Lines with their key and value empty are skipped, allowing free-standing comments with no preceeding localisation, but lines with only one of their key or value empty, while not loaded as a localisation, will still result in warnings about incomplete entries. + +``` +,, Example Localisation Comment +EXAMPLE_KEY,Example Value +ANOTHER_EXAMPLE,Another Example, This is a comment + +,, Entries with empty keys/values are skipped but can still produce warnings +THIS,, produces a warning! +,As, does this! +,, This doesn't! +BUT_THIS_DOES +AND_THIS, +``` diff --git a/game/localisation/en_GB/menus.csv b/game/localisation/en_GB/menus.csv new file mode 100644 index 0000000..27a0858 --- /dev/null +++ b/game/localisation/en_GB/menus.csv @@ -0,0 +1,52 @@ +,, Main Menu +MAINMENU_TITLE,OpenVic2 +MAINMENU_NEW_GAME,New Game +MAINMENU_CONTINUE,Continue +MAINMENU_MULTIPLAYER,Multiplayer +MAINMENU_OPTIONS,Options +MAINMENU_CREDITS,Credits +MAINMENU_EXIT,Exit +MAINMENU_CHECKSUM,Checksum %s + +,, Options +OPTIONS_RESET,R +OPTIONS_BACK,X + +,, General Tab +OPTIONS_GENERAL_SAVEFORMAT,Savegame Format +OPTIONS_GENERAL_BINARY,Binary +OPTIONS_GENERAL_TEXT,Text +OPTIONS_GENERAL_AUTOSAVE,Autosave Interval +OPTIONS_GENERAL_AUTOSAVE_MONTHLY,Monthly +OPTIONS_GENERAL_AUTOSAVE_BIMONTHLY,Bi-Monthly +OPTIONS_GENERAL_AUTOSAVE_YEARLY,Yearly +OPTIONS_GENERAL_AUTOSAVE_BIYEARLY,Bi-Yearly +OPTIONS_GENERAL_AUTOSAVE_NEVER,Never +OPTIONS_GENERAL_LANGUAGE,Language + +,, Video Tab +OPTIONS_VIDEO_RESOLUTION,Resolution +OPTIONS_VIDEO_SCREEN_MODE,Screen Mode +OPTIONS_VIDEO_FULLSCREEN,Fullscreen +OPTIONS_VIDEO_BORDERLESS,Borderless +OPTIONS_VIDEO_WINDOWED,Windowed +OPTIONS_VIDEO_MONITOR_SELECTION,Monitor Selection +OPTIONS_VIDEO_REFRESH_RATE,Refresh Rate +OPTIONS_VIDEO_REFRESH_RATE_TOOLTIP,Only change from VSYNC if you are having issues with screen tearing. +OPTIONS_VIDEO_QUALITY,Quality Preset + +,, Sound Tab +MASTER_BUS,Master Volume +MUSIC_BUS,Music Volume +SFX_BUS,SFX Volume + +,, Credits Menu +CREDITS_BACK,Back to Main Menu + +,, Game Lobby +GAMELOBBY_START,Start Game +GAMELOBBY_BACK,Back + +,, Game Session Menu +GAMESESSIONMENU_RESIGN,Resign +GAMESESSIONMENU_CLOSE,Close diff --git a/game/localisation/en_GB/menus.csv.import b/game/localisation/en_GB/menus.csv.import new file mode 100644 index 0000000..8dd0c09 --- /dev/null +++ b/game/localisation/en_GB/menus.csv.import @@ -0,0 +1,3 @@ +[remap] + +importer="keep" diff --git a/game/localisation/en_US/menus.csv b/game/localisation/en_US/menus.csv new file mode 100644 index 0000000..27a0858 --- /dev/null +++ b/game/localisation/en_US/menus.csv @@ -0,0 +1,52 @@ +,, Main Menu +MAINMENU_TITLE,OpenVic2 +MAINMENU_NEW_GAME,New Game +MAINMENU_CONTINUE,Continue +MAINMENU_MULTIPLAYER,Multiplayer +MAINMENU_OPTIONS,Options +MAINMENU_CREDITS,Credits +MAINMENU_EXIT,Exit +MAINMENU_CHECKSUM,Checksum %s + +,, Options +OPTIONS_RESET,R +OPTIONS_BACK,X + +,, General Tab +OPTIONS_GENERAL_SAVEFORMAT,Savegame Format +OPTIONS_GENERAL_BINARY,Binary +OPTIONS_GENERAL_TEXT,Text +OPTIONS_GENERAL_AUTOSAVE,Autosave Interval +OPTIONS_GENERAL_AUTOSAVE_MONTHLY,Monthly +OPTIONS_GENERAL_AUTOSAVE_BIMONTHLY,Bi-Monthly +OPTIONS_GENERAL_AUTOSAVE_YEARLY,Yearly +OPTIONS_GENERAL_AUTOSAVE_BIYEARLY,Bi-Yearly +OPTIONS_GENERAL_AUTOSAVE_NEVER,Never +OPTIONS_GENERAL_LANGUAGE,Language + +,, Video Tab +OPTIONS_VIDEO_RESOLUTION,Resolution +OPTIONS_VIDEO_SCREEN_MODE,Screen Mode +OPTIONS_VIDEO_FULLSCREEN,Fullscreen +OPTIONS_VIDEO_BORDERLESS,Borderless +OPTIONS_VIDEO_WINDOWED,Windowed +OPTIONS_VIDEO_MONITOR_SELECTION,Monitor Selection +OPTIONS_VIDEO_REFRESH_RATE,Refresh Rate +OPTIONS_VIDEO_REFRESH_RATE_TOOLTIP,Only change from VSYNC if you are having issues with screen tearing. +OPTIONS_VIDEO_QUALITY,Quality Preset + +,, Sound Tab +MASTER_BUS,Master Volume +MUSIC_BUS,Music Volume +SFX_BUS,SFX Volume + +,, Credits Menu +CREDITS_BACK,Back to Main Menu + +,, Game Lobby +GAMELOBBY_START,Start Game +GAMELOBBY_BACK,Back + +,, Game Session Menu +GAMESESSIONMENU_RESIGN,Resign +GAMESESSIONMENU_CLOSE,Close diff --git a/game/localisation/en_US/menus.csv.import b/game/localisation/en_US/menus.csv.import new file mode 100644 index 0000000..8dd0c09 --- /dev/null +++ b/game/localisation/en_US/menus.csv.import @@ -0,0 +1,3 @@ +[remap] + +importer="keep" diff --git a/game/localisation/fr_FR/menus.csv b/game/localisation/fr_FR/menus.csv new file mode 100644 index 0000000..8e8a7ad --- /dev/null +++ b/game/localisation/fr_FR/menus.csv @@ -0,0 +1,52 @@ +,, Main Menu +MAINMENU_TITLE,OpenVic2 +MAINMENU_NEW_GAME,Nouveau Jeu +MAINMENU_CONTINUE,Continuer +MAINMENU_MULTIPLAYER,Multijouer +MAINMENU_OPTIONS,Options +MAINMENU_CREDITS,Credits +MAINMENU_EXIT,Quitter +MAINMENU_CHECKSUM,Somme de contrôle %s + +,, Options +OPTIONS_RESET,R +OPTIONS_BACK,X + +,, General Tab +OPTIONS_GENERAL_SAVEFORMAT,Format de Sauvegarde +OPTIONS_GENERAL_BINARY,Binaire +OPTIONS_GENERAL_TEXT,Texte +OPTIONS_GENERAL_AUTOSAVE,Intervalle d'Enregistrement Automatique +OPTIONS_GENERAL_AUTOSAVE_MONTHLY,Mensuel +OPTIONS_GENERAL_AUTOSAVE_BIMONTHLY,Bimensuel +OPTIONS_GENERAL_AUTOSAVE_YEARLY,Annuel +OPTIONS_GENERAL_AUTOSAVE_BIYEARLY,Bisannuel +OPTIONS_GENERAL_AUTOSAVE_NEVER,Jamais +OPTIONS_GENERAL_LANGUAGE,Langue + +,, Video Tab +OPTIONS_VIDEO_RESOLUTION,Résolution +OPTIONS_VIDEO_SCREEN_MODE,Mode Écran +OPTIONS_VIDEO_FULLSCREEN,Plein Écran +OPTIONS_VIDEO_BORDERLESS,Sans Bordure +OPTIONS_VIDEO_WINDOWED,Fenêtré +OPTIONS_VIDEO_MONITOR_SELECTION,Sélection du Moniteur +OPTIONS_VIDEO_REFRESH_RATE,Taux de Rafraîchissement +OPTIONS_VIDEO_REFRESH_RATE_TOOLTIP,Ne changez de VSYNC que si vous rencontrez des problèmes de déchirement d'écran. +OPTIONS_VIDEO_QUALITY,Préréglage de la Qualité + +,, Sound Tab +MASTER_BUS,Volume Principal +MUSIC_BUS,Volume de la Musique +SFX_BUS,Volume d'Effets Spéciaux + +,, Credits Menu +CREDITS_BACK,Retour au Menu Principal + +,, Game Lobby +GAMELOBBY_START,Démarrer Jeu +GAMELOBBY_BACK,Retourner + +,, Game Session Menu +GAMESESSIONMENU_RESIGN,Démissionner +GAMESESSIONMENU_CLOSE,Fermer diff --git a/game/localisation/fr_FR/menus.csv.import b/game/localisation/fr_FR/menus.csv.import new file mode 100644 index 0000000..8dd0c09 --- /dev/null +++ b/game/localisation/fr_FR/menus.csv.import @@ -0,0 +1,3 @@ +[remap] + +importer="keep" -- cgit v1.2.3-56-ga3b1