From d5d23542960c5c090c4b7593d156a008b3d84914 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 17 Oct 2009 20:34:09 +0000 Subject: (svn r17790) -Feature: translatable base sound/graphics set descriptions --- src/settings_gui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/settings_gui.cpp') diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index 3315b6428..fd352c3e3 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -218,12 +218,12 @@ struct GameOptionsWindow : Window { { switch (widget) { case GOW_BASE_GRF_DESCRIPTION: - SetDParamStr(0, BaseGraphics::GetUsedSet()->description); + SetDParamStr(0, BaseGraphics::GetUsedSet()->GetDescription(GetCurrentLanguageIsoCode())); DrawStringMultiLine(r.left, r.right, r.top, UINT16_MAX, STR_BLACK_RAW_STRING); break; case GOW_BASE_SFX_DESCRIPTION: - SetDParamStr(0, BaseSounds::GetUsedSet()->description); + SetDParamStr(0, BaseSounds::GetUsedSet()->GetDescription(GetCurrentLanguageIsoCode())); DrawStringMultiLine(r.left, r.right, r.top, UINT16_MAX, STR_BLACK_RAW_STRING); break; } @@ -235,7 +235,7 @@ struct GameOptionsWindow : Window { case GOW_BASE_GRF_DESCRIPTION: /* Find the biggest description for the default size. */ for (int i = 0; i < BaseGraphics::GetNumSets(); i++) { - SetDParamStr(0, BaseGraphics::GetSet(i)->description); + SetDParamStr(0, BaseGraphics::GetSet(i)->GetDescription(GetCurrentLanguageIsoCode())); size->height = max(size->height, (uint)GetStringHeight(STR_BLACK_RAW_STRING, size->width)); } break; @@ -254,7 +254,7 @@ struct GameOptionsWindow : Window { case GOW_BASE_SFX_DESCRIPTION: /* Find the biggest description for the default size. */ for (int i = 0; i < BaseSounds::GetNumSets(); i++) { - SetDParamStr(0, BaseSounds::GetSet(i)->description); + SetDParamStr(0, BaseSounds::GetSet(i)->GetDescription(GetCurrentLanguageIsoCode())); size->height = max(size->height, (uint)GetStringHeight(STR_BLACK_RAW_STRING, size->width)); } break; -- cgit v1.2.3-54-g00ecf