Allow translating the basic groups

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8572 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2011-05-14 19:33:48 +00:00
parent 5f812437b9
commit ca2906bac6
2 changed files with 18 additions and 4 deletions

View File

@@ -891,13 +891,20 @@ void KartSelectionScreen::beforeAddingWidget()
}
} // for n<group_amount
// Make group names being picked up by gettext
#define IGNORE(x)
//I18N: kart group name
IGNORE( _("standard") )
//I18N: kart group name
IGNORE( _("Add-Ons") )
// add others after
for (int n=0; n<group_amount; n++)
{
if (groups[n] != DEFAULT_GROUP_NAME)
{
//FIXME: group name not translated
tabs->addTextChild( stringw(groups[n].c_str()).c_str() , groups[n]);
// try to translate group names
tabs->addTextChild( _(groups[n].c_str()) , groups[n]);
}
} // for n<group_amount

View File

@@ -69,13 +69,20 @@ void TracksScreen::loadedFromFile()
}
}
// Make group names being picked up by gettext
#define IGNORE(x)
//I18N: kart group name
IGNORE( _("standard") )
//I18N: kart group name
IGNORE( _("Add-Ons") )
// add others after
for (int n=0; n<group_amount; n++)
{
if (groups[n] != DEFAULT_GROUP_NAME)
{
// FIXME: group name is not translated
tabs->addTextChild( stringw(groups[n].c_str()).c_str(), groups[n] );
// try to translate the group name
tabs->addTextChild( _(groups[n].c_str()), groups[n] );
}
}