From 37a6907e7978a24398137660703a8544a136b0de Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sat, 19 Dec 2009 18:36:35 +0000 Subject: [PATCH] (svn r18543) -Codechange: Use separate set of strings for variety distribution setting to ease translation. --- src/genworld_gui.cpp | 2 +- src/lang/english.txt | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp index 7946681e31..afff51800c 100644 --- a/src/genworld_gui.cpp +++ b/src/genworld_gui.cpp @@ -335,7 +335,7 @@ static const StringID _rotation[] = {STR_CONFIG_SETTING_HEIGHTMAP_ROTATION_CO 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; diff --git a/src/lang/english.txt b/src/lang/english.txt index 1e10826255..95649d7283 100644 --- a/src/lang/english.txt +++ b/src/lang/english.txt @@ -1008,8 +1008,12 @@ STR_NUM_NORMAL :Normal 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