# HG changeset patch # User peter1138 # Date 2009-12-19 18:36:35 # Node ID 3319a5124f88f2007d3390f308781aaa6f8b338f # Parent c5dcb12abd0551b5b8bcebaecfe149b39c1dc8de (svn r18543) -Codechange: Use separate set of strings for variety distribution setting to ease translation. diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp --- a/src/genworld_gui.cpp +++ b/src/genworld_gui.cpp @@ -335,7 +335,7 @@ static const StringID _rotation[] = { 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 --- a/src/lang/english.txt +++ b/src/lang/english.txt @@ -1008,8 +1008,12 @@ STR_NUM_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