Changeset - r10678:c59e6c7504cc
[Not reviewed]
master
0 2 0
rubidium - 15 years ago 2009-01-11 14:01:45
rubidium@openttd.org
(svn r14989) -Codechange: remove a lookup table by reordering some items in english.txt (Swallow)
2 files changed with 3 insertions and 10 deletions:
0 comments (0 inline, 0 general)
src/autoreplace_gui.cpp
Show inline comments
 
@@ -250,19 +250,12 @@ public:
 

	
 
		this->FindWindowPlacementAndResize(desc);
 
	}
 

	
 
	virtual void OnPaint()
 
	{
 
		static const StringID _vehicle_type_names[] = {
 
			STR_019F_TRAIN,
 
			STR_019C_ROAD_VEHICLE,
 
			STR_019E_SHIP,
 
			STR_019D_AIRCRAFT
 
		};
 

	
 
		if (this->update_left || this->update_right) this->GenerateLists();
 

	
 
		Company *c = GetCompany(_local_company);
 
		EngineID selected_id[2];
 
		const GroupID selected_group = this->sel_group;
 

	
 
@@ -284,13 +277,13 @@ public:
 
		 *   or The selected vehicle has no replacement set up */
 
		this->SetWidgetDisabledState(RVW_WIDGET_STOP_REPLACE,
 
										selected_id[0] == INVALID_ENGINE ||
 
										!EngineHasReplacementForCompany(c, selected_id[0], selected_group));
 

	
 
		/* now the actual drawing of the window itself takes place */
 
		SetDParam(0, _vehicle_type_names[this->window_number]);
 
		SetDParam(0, STR_019F_TRAIN + this->window_number);
 

	
 
		if (this->window_number == VEH_TRAIN) {
 
			/* set on/off for renew_keep_length */
 
			SetDParam(1, c->renew_keep_length ? STR_CONFIG_PATCHES_ON : STR_CONFIG_PATCHES_OFF);
 

	
 
			/* set wagon/engine button */
src/lang/english.txt
Show inline comments
 
@@ -475,16 +475,16 @@ STR_0198_PROFIT_THIS_YEAR_LAST_YEAR     
 

	
 
############ range for service numbers starts
 
STR_AGE                                                         :{COMMA} year{P "" s} ({COMMA})
 
STR_AGE_RED                                                     :{RED}{COMMA} year{P "" s} ({COMMA})
 
############ range for service numbers ends
 

	
 
STR_019F_TRAIN                                                  :Train
 
STR_019C_ROAD_VEHICLE                                           :Road vehicle
 
STR_019E_SHIP                                                   :Ship
 
STR_019D_AIRCRAFT                                               :Aircraft
 
STR_019E_SHIP                                                   :Ship
 
STR_019F_TRAIN                                                  :Train
 
STR_01A0_IS_GETTING_OLD                                         :{WHITE}{VEHICLE} is getting old
 
STR_01A1_IS_GETTING_VERY_OLD                                    :{WHITE}{VEHICLE} is getting very old
 
STR_01A2_IS_GETTING_VERY_OLD_AND                                :{WHITE}{VEHICLE} is getting very old and urgently needs replacing
 
STR_01A3_LAND_AREA_INFORMATION                                  :{WHITE}Land Area Information
 
STR_01A4_COST_TO_CLEAR_N_A                                      :{BLACK}Cost to clear: {LTBLUE}N/A
 
STR_01A5_COST_TO_CLEAR                                          :{BLACK}Cost to clear: {RED}{CURRENCY}
0 comments (0 inline, 0 general)