commit after pool from trunk and revert to my latest step 2 languages

This commit is contained in:
askvortsov
2010-09-16 18:38:57 -07:00
parent 58c887a445
commit faa3c80bd3
89 changed files with 23159 additions and 18257 deletions

View File

@@ -26,16 +26,15 @@ MultiLangMgr langMgr;
Glib::ustring M (std::string key) { return langMgr.getStr (key); }
bool MultiLangMgr::load (Glib::ustring fname, MultiLangMgr* fb) {
FILE *f = g_fopen (fname.c_str(), "rt");
fallBack = fb;
FILE *f = g_fopen (fname.c_str(), "rt");
if (f==NULL)
return false;
transTable.clear ();
char* buffer = new char[2048];
while ((buffer = fgets (buffer, 2048, f))) {
@@ -94,5 +93,5 @@ Glib::ustring MultiLangMgr::getStr (std::string key) {
else if (fallBack)
return fallBack->getStr (key);
else
return "";
return key;
}