summaryrefslogtreecommitdiff
path: root/roadveh_gui.c
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 /roadveh_gui.c
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 'roadveh_gui.c')
-rw-r--r--roadveh_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/roadveh_gui.c b/roadveh_gui.c
index e715cd9f3..972770885 100644
--- a/roadveh_gui.c
+++ b/roadveh_gui.c
@@ -39,7 +39,7 @@ void DrawRoadVehPurchaseInfo(int x, int y, EngineID engine_number)
y += 10;
/* Cargo type + capacity */
- SetDParam(0, _cargoc.names_long_p[rvi->cargo_type]);
+ SetDParam(0, _cargoc.names_long[rvi->cargo_type]);
SetDParam(1, rvi->capacity);
SetDParam(2, STR_EMPTY);
DrawString(x, y, STR_PURCHASE_INFO_CAPACITY, 0);
@@ -138,7 +138,7 @@ static void RoadVehDetailsWndProc(Window *w, WindowEvent *e)
SetDParam(2, v->value);
DrawString(34, 57, STR_9011_BUILT_VALUE, 0);
- SetDParam(0, _cargoc.names_long_p[v->cargo_type]);
+ SetDParam(0, _cargoc.names_long[v->cargo_type]);
SetDParam(1, v->cargo_cap);
DrawString(34, 67, STR_9012_CAPACITY, 0);