Skip to content

Commit

Permalink
Fixed translation warnings
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
penev92 committed Oct 7, 2023
1 parent d9bfa49 commit ca1d5d4
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 6 deletions.
30 changes: 30 additions & 0 deletions mods/example/languages/en.ftl
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions mods/example/mod.chrome.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,4 @@ Hotkeys:

Translations:
common|languages/en.ftl
example|languages/en.ftl
12 changes: 6 additions & 6 deletions mods/example/mod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions mods/example/rules/world.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ world:
StartingUnits@Example:
BaseActor: example
Factions: example
ClassName: options-starting-units.unlabeled

editorworld:
Inherits: ^baseworld
Expand Down

0 comments on commit ca1d5d4

Please sign in to comment.