summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorludde <ludde@openttd.org>2005-07-16 20:58:04 +0000
committerludde <ludde@openttd.org>2005-07-16 20:58:04 +0000
commit64f6839816221873b9a5327fe038533a7d3b8a98 (patch)
tree69f0f649731f03bc4b9a79121d4b839e7400a826 /lang
parent01f3b6b6fe88ccfbd2bfa2c7af495e1739471409 (diff)
downloadopenttd-64f6839816221873b9a5327fe038533a7d3b8a98.tar.xz
(svn r2594) Fix: [strgen] Misc updates to the string system.
- Renamed the plural command to "P" instead of "PLURAL". Now write something like this to append an s on plural: {P "" s}. (You can optionally still add an argument index to explicitly specifiy which number that's used) - Removed the pluralized cargo strings from the string files. The new method is to use the plural specifier {P} - Added support for genders. First add "##gender der das die" on top, then use {G=der} on a cargoname/industry to set the gender, and to switch between genders do something like {G neu neu neue} {STRING} - Updated the swedish/english translation with P strings.
Diffstat (limited to 'lang')
-rw-r--r--lang/english.txt85
-rw-r--r--lang/swedish.txt50
2 files changed, 36 insertions, 99 deletions
diff --git a/lang/english.txt b/lang/english.txt
index 4d7b03bf3..61124ae22 100644
--- a/lang/english.txt
+++ b/lang/english.txt
@@ -1,6 +1,7 @@
##name English
##ownname English (UK)
##isocode en_GB
+##plural 0
##id 0x0000
STR_NULL :
@@ -82,69 +83,37 @@ STR_004B_BATTERY :Battery
STR_004C_PLASTIC :Plastic
STR_004D_FIZZY_DRINK :Fizzy Drink
STR_004E :
-STR_004F_PASSENGER :{COMMA} passenger
-STR_0050_TON_OF_COAL :{COMMA} tonne of coal
-STR_0051_BAG_OF_MAIL :{COMMA} bag of mail
+STR_004F_PASSENGER :{COMMA} passenger{P "" s}
+STR_0050_TON_OF_COAL :{COMMA} tonne{P "" s} of coal
+STR_0051_BAG_OF_MAIL :{COMMA} bag{P "" s} of mail
STR_0052_OF_OIL :{VOLUME} of oil
-STR_0053_ITEM_OF_LIVESTOCK :{COMMA} item of livestock
-STR_0054_CRATE_OF_GOODS :{COMMA} crate of goods
-STR_0055_TON_OF_GRAIN :{COMMA} tonne of grain
-STR_0056_TON_OF_WOOD :{COMMA} tonne of wood
-STR_0057_TON_OF_IRON_ORE :{COMMA} tonne of iron ore
-STR_0058_TON_OF_STEEL :{COMMA} tonne of steel
-STR_0059_BAG_OF_VALUABLES :{COMMA} bag of valuables
-STR_005A_TON_OF_COPPER_ORE :{COMMA} tonne of copper ore
-STR_005B_TON_OF_MAIZE :{COMMA} tonne of maize
-STR_005C_TON_OF_FRUIT :{COMMA} tonne of fruit
-STR_005D_BAG_OF_DIAMONDS :{COMMA} bag of diamonds
-STR_005E_TON_OF_FOOD :{COMMA} tonne of food
-STR_005F_TON_OF_PAPER :{COMMA} tonne of paper
-STR_0060_BAG_OF_GOLD :{COMMA} bag of gold
+STR_0053_ITEM_OF_LIVESTOCK :{COMMA} item{P "" s} of livestock
+STR_0054_CRATE_OF_GOODS :{COMMA} crate{P "" s} of goods
+STR_0055_TON_OF_GRAIN :{COMMA} tonne{P "" s} of grain
+STR_0056_TON_OF_WOOD :{COMMA} tonne{P "" s} of wood
+STR_0057_TON_OF_IRON_ORE :{COMMA} tonne{P "" s} of iron ore
+STR_0058_TON_OF_STEEL :{COMMA} tonne{P "" s} of steel
+STR_0059_BAG_OF_VALUABLES :{COMMA} bag{P "" s} of valuables
+STR_005A_TON_OF_COPPER_ORE :{COMMA} tonne{P "" s} of copper ore
+STR_005B_TON_OF_MAIZE :{COMMA} tonne{P "" s} of maize
+STR_005C_TON_OF_FRUIT :{COMMA} tonne{P "" s} of fruit
+STR_005D_BAG_OF_DIAMONDS :{COMMA} bag{P "" s} of diamonds
+STR_005E_TON_OF_FOOD :{COMMA} tonne{P "" s} of food
+STR_005F_TON_OF_PAPER :{COMMA} tonne{P "" s} of paper
+STR_0060_BAG_OF_GOLD :{COMMA} bag{P "" s} of gold
STR_0061_OF_WATER :{VOLUME} of water
-STR_0062_TON_OF_WHEAT :{COMMA} tonne of wheat
+STR_0062_TON_OF_WHEAT :{COMMA} tonne{P "" s} of wheat
STR_0063_OF_RUBBER :{VOLUME} of rubber
-STR_0064_TON_OF_SUGAR :{COMMA} tonne of sugar
-STR_0065_TOY :{COMMA} toy
-STR_0066_BAG_OF_CANDY :{COMMA} bag of sweets
+STR_0064_TON_OF_SUGAR :{COMMA} tonne{P "" s} of sugar
+STR_0065_TOY :{COMMA} toy{P "" s}
+STR_0066_BAG_OF_CANDY :{COMMA} bag{P "" s} of sweets
STR_0067_OF_COLA :{VOLUME} of cola
-STR_0068_TON_OF_COTTON_CANDY :{COMMA} tonne of candyfloss
-STR_0069_BUBBLE :{COMMA} bubble
-STR_006A_TON_OF_TOFFEE :{COMMA} tonne of toffee
-STR_006B_BATTERY :{COMMA} battery
+STR_0068_TON_OF_COTTON_CANDY :{COMMA} tonne{P "" s} of candyfloss
+STR_0069_BUBBLE :{COMMA} bubble{P "" s}
+STR_006A_TON_OF_TOFFEE :{COMMA} tonne{P "" s} of toffee
+STR_006B_BATTERY :{COMMA} batter{P y ies}
STR_006C_OF_PLASTIC :{VOLUME} of plastic
-STR_006D_FIZZY_DRINK :{COMMA} fizzy drink
-STR_006E :
-STR_006F_PASSENGERS :{COMMA} passengers
-STR_0070_TONS_OF_COAL :{COMMA} tonnes of coal
-STR_0071_BAGS_OF_MAIL :{COMMA} bags of mail
-STR_0072_OF_OIL :{VOLUME} of oil
-STR_0073_ITEMS_OF_LIVESTOCK :{COMMA} items of livestock
-STR_0074_CRATES_OF_GOODS :{COMMA} crates of goods
-STR_0075_TONS_OF_GRAIN :{COMMA} tonnes of grain
-STR_0076_TONS_OF_WOOD :{COMMA} tonnes of wood
-STR_0077_TONS_OF_IRON_ORE :{COMMA} tonnes of iron ore
-STR_0078_TONS_OF_STEEL :{COMMA} tonnes of steel
-STR_0079_BAGS_OF_VALUABLES :{COMMA} bags of valuables
-STR_007A_TONS_OF_COPPER_ORE :{COMMA} tonnes of copper ore
-STR_007B_TONS_OF_MAIZE :{COMMA} tonnes of maize
-STR_007C_TONS_OF_FRUIT :{COMMA} tonnes of fruit
-STR_007D_BAGS_OF_DIAMONDS :{COMMA} bags of diamonds
-STR_007E_TONS_OF_FOOD :{COMMA} tonnes of food
-STR_007F_TONS_OF_PAPER :{COMMA} tonnes of paper
-STR_0080_BAGS_OF_GOLD :{COMMA} bags of gold
-STR_0081_OF_WATER :{VOLUME} of water
-STR_0082_TONS_OF_WHEAT :{COMMA} tonnes of wheat
-STR_0083_OF_RUBBER :{VOLUME} of rubber
-STR_0084_TONS_OF_SUGAR :{COMMA} tonnes of sugar
-STR_0085_TOYS :{COMMA} toys
-STR_0086_BAGS_OF_CANDY :{COMMA} bags of sweets
-STR_0087_OF_COLA :{VOLUME} of cola
-STR_0088_TONS_OF_COTTON_CANDY :{COMMA} tonnes of candyfloss
-STR_0089_BUBBLES :{COMMA} bubbles
-STR_008A_TONS_OF_TOFFEE :{COMMA} tonnes of toffee
-STR_008B_BATTERIES :{COMMA} batteries
-STR_008C_OF_PLASTIC :{VOLUME} of plastic
-STR_008D_FIZZY_DRINKS :{COMMA} fizzy drinks
+STR_006D_FIZZY_DRINK :{COMMA} fizzy drink{P "" s}
STR_008E :
STR_008F_PS :{TINYFONT}PS
STR_0090_CL :{TINYFONT}CL
diff --git a/lang/swedish.txt b/lang/swedish.txt
index 523419f7c..6fb875d38 100644
--- a/lang/swedish.txt
+++ b/lang/swedish.txt
@@ -84,67 +84,35 @@ STR_004D_FIZZY_DRINK :läsk
STR_004E :
STR_004F_PASSENGER :{COMMA} passagerare
STR_0050_TON_OF_COAL :{COMMA} ton kol
-STR_0051_BAG_OF_MAIL :{COMMA} postsäck
+STR_0051_BAG_OF_MAIL :{COMMA} postsäck{P "" ar}
STR_0052_OF_OIL :{VOLUME} olja
STR_0053_ITEM_OF_LIVESTOCK :{COMMA} boskap
-STR_0054_CRATE_OF_GOODS :{COMMA} låda gods
+STR_0054_CRATE_OF_GOODS :{COMMA} låd{P a or} gods
STR_0055_TON_OF_GRAIN :{COMMA} ton spannmål
STR_0056_TON_OF_WOOD :{COMMA} ton timmer
STR_0057_TON_OF_IRON_ORE :{COMMA} ton järnmalm
STR_0058_TON_OF_STEEL :{COMMA} ton stål
-STR_0059_BAG_OF_VALUABLES :{COMMA} värdesäck
+STR_0059_BAG_OF_VALUABLES :{COMMA} värdesäck{P "" ar}
STR_005A_TON_OF_COPPER_ORE :{COMMA} ton kopparmalm
STR_005B_TON_OF_MAIZE :{COMMA} ton majs
STR_005C_TON_OF_FRUIT :{COMMA} ton frukt
-STR_005D_BAG_OF_DIAMONDS :{COMMA} diamantsäck
+STR_005D_BAG_OF_DIAMONDS :{COMMA} diamantsäck{P "" ar}
STR_005E_TON_OF_FOOD :{COMMA} ton mat
STR_005F_TON_OF_PAPER :{COMMA} ton papper
-STR_0060_BAG_OF_GOLD :{COMMA} guldsäck
+STR_0060_BAG_OF_GOLD :{COMMA} guldsäck{P "" ar}
STR_0061_OF_WATER :{VOLUME} vatten
STR_0062_TON_OF_WHEAT :{COMMA} ton vete
STR_0063_OF_RUBBER :{VOLUME} gummi
STR_0064_TON_OF_SUGAR :{COMMA} ton socker
-STR_0065_TOY :{COMMA} leksak
-STR_0066_BAG_OF_CANDY :{COMMA} godispåse
+STR_0065_TOY :{COMMA} leksak{P "" er}
+STR_0066_BAG_OF_CANDY :{COMMA} godispås{P e ar}
STR_0067_OF_COLA :{VOLUME} kola
STR_0068_TON_OF_COTTON_CANDY :{COMMA} ton spunnet socker
-STR_0069_BUBBLE :{COMMA} bubbla
+STR_0069_BUBBLE :{COMMA} bubbl{P a or}
STR_006A_TON_OF_TOFFEE :{COMMA} ton knäck
-STR_006B_BATTERY :{COMMA} batteri
+STR_006B_BATTERY :{COMMA} batteri{P "" er}
STR_006C_OF_PLASTIC :{VOLUME} plast
STR_006D_FIZZY_DRINK :{COMMA} läsk
-STR_006E :
-STR_006F_PASSENGERS :{COMMA} passagerare
-STR_0070_TONS_OF_COAL :{COMMA} ton kol
-STR_0071_BAGS_OF_MAIL :{COMMA} postsäckar
-STR_0072_OF_OIL :{VOLUME} olja
-STR_0073_ITEMS_OF_LIVESTOCK :{COMMA} stycken boskap
-STR_0074_CRATES_OF_GOODS :{COMMA} lådor gods
-STR_0075_TONS_OF_GRAIN :{COMMA} ton spannmål
-STR_0076_TONS_OF_WOOD :{COMMA} ton timmer
-STR_0077_TONS_OF_IRON_ORE :{COMMA} ton järnmalm
-STR_0078_TONS_OF_STEEL :{COMMA} ton stål
-STR_0079_BAGS_OF_VALUABLES :{COMMA} värdesäckar
-STR_007A_TONS_OF_COPPER_ORE :{COMMA} ton kopparmalm
-STR_007B_TONS_OF_MAIZE :{COMMA} ton majs
-STR_007C_TONS_OF_FRUIT :{COMMA} ton frukt
-STR_007D_BAGS_OF_DIAMONDS :{COMMA} diamantsäckar
-STR_007E_TONS_OF_FOOD :{COMMA} ton mat
-STR_007F_TONS_OF_PAPER :{COMMA} ton papper
-STR_0080_BAGS_OF_GOLD :{COMMA} guldsäckar
-STR_0081_OF_WATER :{VOLUME} vatten
-STR_0082_TONS_OF_WHEAT :{COMMA} ton vete
-STR_0083_OF_RUBBER :{VOLUME} gummi
-STR_0084_TONS_OF_SUGAR :{COMMA} ton socker
-STR_0085_TOYS :{COMMA} leksaker
-STR_0086_BAGS_OF_CANDY :{COMMA} godispåsar
-STR_0087_OF_COLA :{VOLUME} kola
-STR_0088_TONS_OF_COTTON_CANDY :{COMMA} ton spunnet socker
-STR_0089_BUBBLES :{COMMA} bubblor
-STR_008A_TONS_OF_TOFFEE :{COMMA} ton knäck
-STR_008B_BATTERIES :{COMMA} batterier
-STR_008C_OF_PLASTIC :{VOLUME} plast
-STR_008D_FIZZY_DRINKS :{COMMA} läsk
STR_008E :
STR_008F_PS :{TINYFONT}PS
STR_0090_CL :{TINYFONT}KL