summaryrefslogtreecommitdiff
path: root/strgen
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-03-26 21:50:57 +0000
committerpeter1138 <peter1138@openttd.org>2006-03-26 21:50:57 +0000
commit67bc818bbe9370c69455a881920a2cd5ea3ec973 (patch)
treef4e3d5e79c1ff5b556baaf0b157ff8b937822836 /strgen
parentc9bf9b7553ff4057b08ccb4a274f701114615ec3 (diff)
downloadopenttd-67bc818bbe9370c69455a881920a2cd5ea3ec973.tar.xz
(svn r4126) - Feature: A new multi-lingual multi-measuring-unit system:
- Replace miles/kilometres game option with a general measuring units option. - Add {POWER}, {WEIGHT}, {WEIGHT_S} and {VOLUME_S} (_S for short) tags to the language/string system. - Add SI as option for measuring units. Language file updates to use the system will come soon.
Diffstat (limited to 'strgen')
-rw-r--r--strgen/strgen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/strgen/strgen.c b/strgen/strgen.c
index b9fe806a5..67fd1be5a 100644
--- a/strgen/strgen.c
+++ b/strgen/strgen.c
@@ -438,6 +438,10 @@ static const CmdStruct _cmd_structs[] = {
{"VOLUME", EmitEscapedByte, 12, 1, 0},
{"DATE_TINY", EmitEscapedByte, 14, 1, 0},
{"CARGO", EmitEscapedByte, 15, 2, 0},
+ {"POWER", EmitEscapedByte, 16, 1, 0},
+ {"VOLUME_S", EmitEscapedByte, 17, 1, 0},
+ {"WEIGHT", EmitEscapedByte, 18, 1, 0},
+ {"WEIGHT_S", EmitEscapedByte, 19, 1, 0},
{"P", EmitPlural, 0, 0, C_DONTCOUNT}, // plural specifier
{"G", EmitGender, 0, 0, C_DONTCOUNT}, // gender specifier