Skip to content

Commit dad744f

Browse files
penev92PunkPun
authored andcommitted
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`.
1 parent 77b77d1 commit dad744f

File tree

4 files changed

+38
-6
lines changed

4 files changed

+38
-6
lines changed

mods/example/languages/en.ftl

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## Shroud
2+
checkbox-fog-of-war =
3+
.label = Fog of War
4+
.description = Line of sight is required to view enemy forces
5+
6+
checkbox-explored-map =
7+
.label = Explored Map
8+
.description = Initial map shroud is revealed
9+
10+
## DeveloperMode
11+
checkbox-debug-menu =
12+
.label = Debug Menu
13+
.description = Enables cheats and developer commands
14+
15+
## MapStartingLocations
16+
checkbox-separate-team-spawns =
17+
.label = Separate Team Spawns
18+
.description = Players without assigned spawn points will start as far as possible from enemy players
19+
20+
## SpawnStartingUnits
21+
dropdown-starting-units =
22+
.label = Starting Units
23+
.description = The units that players start the game with
24+
25+
## World
26+
options-starting-units =
27+
.unlabeled = Unlabeled
28+
29+
options-difficulty =
30+
.normal = Normal

mods/example/mod.chrome.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,4 @@ Hotkeys:
105105

106106
Translations:
107107
common|languages/en.ftl
108+
example|languages/en.ftl

mods/example/mod.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,27 +50,27 @@ GameSpeeds:
5050
DefaultSpeed: default
5151
Speeds:
5252
slowest:
53-
Name: slowest
53+
Name: options-game-speed.slowest
5454
Timestep: 80
5555
OrderLatency: 2
5656
slower:
57-
Name: slower
57+
Name: options-game-speed.slower
5858
Timestep: 50
5959
OrderLatency: 3
6060
default:
61-
Name: normal
61+
Name: options-game-speed.normal
6262
Timestep: 40
6363
OrderLatency: 3
6464
fast:
65-
Name: fast
65+
Name: options-game-speed.fast
6666
Timestep: 35
6767
OrderLatency: 4
6868
faster:
69-
Name: faster
69+
Name: options-game-speed.faster
7070
Timestep: 30
7171
OrderLatency: 4
7272
fastest:
73-
Name: fastest
73+
Name: options-game-speed.fastest
7474
Timestep: 20
7575
OrderLatency: 6
7676

mods/example/rules/world.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ world:
2929
StartingUnits@Example:
3030
BaseActor: example
3131
Factions: example
32+
ClassName: options-starting-units.unlabeled
3233

3334
editorworld:
3435
Inherits: ^baseworld

0 commit comments

Comments
 (0)