localize more strings

This commit is contained in:
Chris Danford
2006-01-08 19:38:33 +00:00
parent fc18dbd342
commit 9122e2f935
11 changed files with 90 additions and 41 deletions
+6
View File
@@ -3,6 +3,7 @@
#include "RageLog.h"
#include "RageUtil.h"
#include "Game.h"
#include "ThemeManager.h"
static const char *GameControllerNames[] = {
@@ -18,6 +19,11 @@ CString GameButtonToString( const Game* pGame, GameButton i )
return pGame->m_szButtonNames[i];
}
CString GameButtonToLocalizedString( const Game* pGame, GameButton i )
{
return THEME->GetString( "GameButton", GameButtonToString(pGame,i) );
}
GameButton StringToGameButton( const Game* pGame, const CString& s )
{
for( int i=0; i<pGame->m_iButtonsPerController; i++ )