From: <hik...@us...> - 2008-05-09 01:11:13
|
Revision: 1837 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=1837&view=rev Author: hikerstk Date: 2008-05-08 18:11:09 -0700 (Thu, 08 May 2008) Log Message: ----------- Fixed missing translation of kart action strings. Modified Paths: -------------- trunk/supertuxkart/src/gui/help_page_one.cpp trunk/supertuxkart/src/gui/player_controls.cpp Modified: trunk/supertuxkart/src/gui/help_page_one.cpp =================================================================== --- trunk/supertuxkart/src/gui/help_page_one.cpp 2008-05-09 00:19:43 UTC (rev 1836) +++ trunk/supertuxkart/src/gui/help_page_one.cpp 2008-05-09 01:11:09 UTC (rev 1837) @@ -123,7 +123,7 @@ 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(); Modified: trunk/supertuxkart/src/gui/player_controls.cpp =================================================================== --- trunk/supertuxkart/src/gui/player_controls.cpp 2008-05-09 00:19:43 UTC (rev 1836) +++ trunk/supertuxkart/src/gui/player_controls.cpp 2008-05-09 01:11:09 UTC (rev 1837) @@ -86,7 +86,12 @@ 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(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |