Esempio n. 1
0
int SetLangID( int langID )
{
	int nRet = 0;
	int curID = s_SysLang.GetLangID();

	if ( curID != langID )
    {
    	nRet = s_SysLang.SetLangID( langID );
    	if ( nRet == 0 )
        {    
        	char path[256];
        	const char *pLangFile = s_SysLang.GetLangFile( langID );
        	snprintf( path, sizeof(path), "%s/%s", SYS_CONFIG_LANG_PATH, pLangFile );
        	nRet = s_SysLang.LoadLangFile( path );
        	if ( nRet != 0 ) s_SysLang.SetLangID( curID );
        }
    }
    
	return nRet;
}
Esempio n. 2
0
const char *GetCharSet()
{
    return s_SysLang.GetCharSet( s_SysLang.GetLangID() );
}
Esempio n. 3
0
int GetLangID()
{
	return s_SysLang.GetLangID();
}