summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-12-18 18:21:55 +0000
committerfrosch <frosch@openttd.org>2011-12-18 18:21:55 +0000
commit6ae8cac4320e098c1fa628a3afd5c090aacc80a2 (patch)
treef0127428b9f7e8e39057346b8ac765e6519b0359 /src/ai
parent33d283fdb1710e40cff4daaabde6aa78325d4623 (diff)
downloadopenttd-6ae8cac4320e098c1fa628a3afd5c090aacc80a2.tar.xz
(svn r23589) -Codechange: Make the AI-start-delay setting translateable.
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_config.cpp2
-rw-r--r--src/ai/ai_gui.cpp10
2 files changed, 9 insertions, 3 deletions
diff --git a/src/ai/ai_config.cpp b/src/ai/ai_config.cpp
index 3f6b3c31b..89b959015 100644
--- a/src/ai/ai_config.cpp
+++ b/src/ai/ai_config.cpp
@@ -19,7 +19,7 @@
/** Configuration for AI start date, every AI has this setting. */
ScriptConfigItem _start_date_config = {
"start_date",
- "Number of days to start this AI after the previous one (give or take)",
+ "", // STR_AI_SETTINGS_START_DELAY
AI::START_NEXT_MIN,
AI::START_NEXT_MAX,
AI::START_NEXT_MEDIUM,
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp
index 2d6dd8d20..47f622ab7 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -338,8 +338,14 @@ struct AISettingsWindow : public Window {
TextColour colour;
uint idx = 0;
if (StrEmpty(config_item.description)) {
- str = STR_JUST_STRING;
- colour = TC_ORANGE;
+ if (!strcmp(config_item.name, "start_date")) {
+ /* Build-in translation */
+ str = STR_AI_SETTINGS_START_DELAY;
+ colour = TC_LIGHT_BLUE;
+ } else {
+ str = STR_JUST_STRING;
+ colour = TC_ORANGE;
+ }
} else {
str = STR_AI_SETTINGS_SETTING;
colour = TC_LIGHT_BLUE;