Mercurial > hg > openttd
changeset 14001:98cb52497428 draft
(svn r18543) -Codechange: Use separate set of strings for variety distribution setting to ease translation.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Sat, 19 Dec 2009 18:36:35 +0000 |
parents | fa28786162a2 |
children | 944ce8347ad5 |
files | src/genworld_gui.cpp src/lang/english.txt |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/genworld_gui.cpp +++ b/src/genworld_gui.cpp @@ -335,7 +335,7 @@ static const StringID _landscape[] = {STR_CONFIG_SETTING_LAND_GENERATOR_ORIGINAL, STR_CONFIG_SETTING_LAND_GENERATOR_TERRA_GENESIS, INVALID_STRING_ID}; static const StringID _num_towns[] = {STR_NUM_VERY_LOW, STR_NUM_LOW, STR_NUM_NORMAL, STR_NUM_HIGH, STR_NUM_CUSTOM, INVALID_STRING_ID}; static const StringID _num_inds[] = {STR_NONE, STR_NUM_VERY_LOW, STR_NUM_LOW, STR_NUM_NORMAL, STR_NUM_HIGH, INVALID_STRING_ID}; -static const StringID _variety[] = {STR_NONE, STR_NUM_VERY_LOW, STR_NUM_LOW, STR_NUM_MEDIUM, STR_NUM_HIGH, STR_NUM_VERY_HIGH, INVALID_STRING_ID}; +static const StringID _variety[] = {STR_VARIETY_NONE, STR_VARIETY_VERY_LOW, STR_VARIETY_LOW, STR_VARIETY_MEDIUM, STR_VARIETY_HIGH, STR_VARIETY_VERY_HIGH, INVALID_STRING_ID}; struct GenerateLandscapeWindow : public QueryStringBaseWindow { uint widget_id;
--- a/src/lang/english.txt +++ b/src/lang/english.txt @@ -1008,8 +1008,12 @@ STR_NUM_HIGH :High STR_NUM_CUSTOM :Custom -STR_NUM_MEDIUM :Medium -STR_NUM_VERY_HIGH :Very High +STR_VARIETY_NONE :None +STR_VARIETY_VERY_LOW :Very Low +STR_VARIETY_LOW :Low +STR_VARIETY_MEDIUM :Medium +STR_VARIETY_HIGH :High +STR_VARIETY_VERY_HIGH :Very High STR_AI_SPEED_VERY_SLOW :Very Slow STR_AI_SPEED_SLOW :Slow