diff options
author | ludde <ludde@openttd.org> | 2005-07-16 20:58:04 +0000 |
---|---|---|
committer | ludde <ludde@openttd.org> | 2005-07-16 20:58:04 +0000 |
commit | 594dd34e84e78b03e1cdeb7cf262707fd714a5fa (patch) | |
tree | 69f0f649731f03bc4b9a79121d4b839e7400a826 /aircraft_gui.c | |
parent | cb5fc8f6ffa0062f395bbf742390db6411f4fe32 (diff) | |
download | openttd-594dd34e84e78b03e1cdeb7cf262707fd714a5fa.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 'aircraft_gui.c')
-rw-r--r-- | aircraft_gui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/aircraft_gui.c b/aircraft_gui.c index a235e68d9..33bbef5ed 100644 --- a/aircraft_gui.c +++ b/aircraft_gui.c @@ -245,7 +245,7 @@ static void AircraftRefitWndProc(Window *w, WindowEvent *e) int32 cost = DoCommandByTile(v->tile, v->index, WP(w,refit_d).cargo, DC_QUERY_COST, CMD_REFIT_AIRCRAFT); if (!CmdFailed(cost)) { SetDParam(2, cost); - SetDParam(0, _cargoc.names_long_p[WP(w,refit_d).cargo]); + SetDParam(0, _cargoc.names_long[WP(w,refit_d).cargo]); SetDParam(1, _aircraft_refit_capacity); DrawString(1, 137, STR_A041_NEW_CAPACITY_COST_OF_REFIT, 0); } @@ -377,10 +377,10 @@ static void AircraftDetailsWndProc(Window *w, WindowEvent *e) DrawString(60, y, STR_A011_BUILT_VALUE, 0); y += 10; - SetDParam(0, _cargoc.names_long_p[v->cargo_type]); + SetDParam(0, _cargoc.names_long[v->cargo_type]); SetDParam(1, v->cargo_cap); u = v->next; - SetDParam(2, _cargoc.names_long_p[u->cargo_type]); + SetDParam(2, _cargoc.names_long[u->cargo_type]); SetDParam(3, u->cargo_cap); DrawString(60, y, STR_A019_CAPACITY + (u->cargo_cap == 0), 0); y += 14; |