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:
@@ -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
|
||||
|
||||
|
||||
@@ -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] );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user