moved the translator init code earlier; added some translation support for the code of r2517 and r2907; updated some Chinese translation.

This commit is contained in:
linshier
2011-01-31 14:21:46 +00:00
parent 6bf8a1209d
commit 6bde3d0ee6
7 changed files with 85 additions and 39 deletions
+2
View File
@@ -181,6 +181,8 @@ void GameApp::Create()
string lang = options[Options::LANG].str;
std::transform(lang.begin(), lang.end(), lang.begin(), ::tolower);
WResourceManager::Instance()->InitFonts(lang);
Translator::GetInstance()->init();
// The translator is ready now.
LOG("--Loading various textures");
WResourceManager::Instance()->RetrieveTexture("phasebar.png", RETRIEVE_MANAGE);