From ca1d5d4d1141ce7ebdd3c4e10c3e08435e528673 Mon Sep 17 00:00:00 2001 From: penev92 Date: Tue, 3 Oct 2023 09:55:05 +0300 Subject: [PATCH] Fixed translation warnings By updating game speed settings, copying over translations from `common|languages/rules/en.ftl` for missing translations and defining a translation key for `StartingUnits.ClassName`. --- mods/example/languages/en.ftl | 30 ++++++++++++++++++++++++++++++ mods/example/mod.chrome.yaml | 1 + mods/example/mod.yaml | 12 ++++++------ mods/example/rules/world.yaml | 1 + 4 files changed, 38 insertions(+), 6 deletions(-) create mode 100644 mods/example/languages/en.ftl diff --git a/mods/example/languages/en.ftl b/mods/example/languages/en.ftl new file mode 100644 index 000000000..8dfd7517f --- /dev/null +++ b/mods/example/languages/en.ftl @@ -0,0 +1,30 @@ +## Shroud +checkbox-fog-of-war = + .label = Fog of War + .description = Line of sight is required to view enemy forces + +checkbox-explored-map = + .label = Explored Map + .description = Initial map shroud is revealed + +## DeveloperMode +checkbox-debug-menu = + .label = Debug Menu + .description = Enables cheats and developer commands + +## MapStartingLocations +checkbox-separate-team-spawns = + .label = Separate Team Spawns + .description = Players without assigned spawn points will start as far as possible from enemy players + +## SpawnStartingUnits +dropdown-starting-units = + .label = Starting Units + .description = The units that players start the game with + +## World +options-starting-units = + .unlabeled = Unlabeled + +options-difficulty = + .normal = Normal diff --git a/mods/example/mod.chrome.yaml b/mods/example/mod.chrome.yaml index 740ad8f57..50e04f88e 100644 --- a/mods/example/mod.chrome.yaml +++ b/mods/example/mod.chrome.yaml @@ -104,3 +104,4 @@ Hotkeys: Translations: common|languages/en.ftl + example|languages/en.ftl diff --git a/mods/example/mod.yaml b/mods/example/mod.yaml index e5bc57706..9ba02d6d0 100644 --- a/mods/example/mod.yaml +++ b/mods/example/mod.yaml @@ -50,27 +50,27 @@ GameSpeeds: DefaultSpeed: default Speeds: slowest: - Name: slowest + Name: options-game-speed.slowest Timestep: 80 OrderLatency: 2 slower: - Name: slower + Name: options-game-speed.slower Timestep: 50 OrderLatency: 3 default: - Name: normal + Name: options-game-speed.normal Timestep: 40 OrderLatency: 3 fast: - Name: fast + Name: options-game-speed.fast Timestep: 35 OrderLatency: 4 faster: - Name: faster + Name: options-game-speed.faster Timestep: 30 OrderLatency: 4 fastest: - Name: fastest + Name: options-game-speed.fastest Timestep: 20 OrderLatency: 6 diff --git a/mods/example/rules/world.yaml b/mods/example/rules/world.yaml index 07e4f15ab..938c250a3 100644 --- a/mods/example/rules/world.yaml +++ b/mods/example/rules/world.yaml @@ -29,6 +29,7 @@ world: StartingUnits@Example: BaseActor: example Factions: example + ClassName: options-starting-units.unlabeled editorworld: Inherits: ^baseworld