Fixed missing translation of kart action strings.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1837 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2008-05-09 01:11:09 +00:00
parent a71056e6bf
commit 196a1dc1dd
2 changed files with 7 additions and 2 deletions

View File

@@ -123,7 +123,7 @@ get stuck or fall too far, use the rescue button to get back on track."));
for(int i = WTOK_FIRST_KEYNAME; i <= WTOK_LAST_KEYNAME; ++i)
{
widget_manager->addTextWgt( i, 20, 4,
sKartAction2String[i - WTOK_FIRST_KEYNAME] );
_(sKartAction2String[i - WTOK_FIRST_KEYNAME]) );
widget_manager->setWgtRoundCorners( i, WGT_AREA_LFT );
}
widget_manager->breakLine();

View File

@@ -86,7 +86,12 @@ PlayerControls::PlayerControls(int whichPlayer):
widget_manager->insertColumn();
for(int i = KA_FIRST; i <= KA_LAST; i++)
{
widget_manager->addTextWgt( WTOK_KEY0 + i, 30, 7, sKartAction2String[i] );
// Note: even though that all strings in sKartAction2Strings above
// are in _(), they are not translated (since gettext is actually
// called at startup (just after loading) of the program, when
// gettext is not yet initialised - so it returns the untranslated
// strings). So we add an additional _() here (and in help_page_one).
widget_manager->addTextWgt( WTOK_KEY0 + i, 30, 7, _(sKartAction2String[i]) );
}
widget_manager->breakLine();