new game hints and german translation . ( hints are in data/lang now )

This commit is contained in:
Titus Tscharntke 2012-09-01 19:31:49 +00:00
parent 1072223b48
commit b9b6f9ef1a

View File

@ -806,8 +806,8 @@ void Game::load(int loadTypes) {
if(data_path != ""){
endPathWithSlash(data_path);
}
string englishFile=getGameCustomCoreDataPath(data_path, "data/core/hint/hint_"+Lang::getInstance().getDefaultLanguage()+".lng");
string languageFile=getGameCustomCoreDataPath(data_path, "data/core/hint/hint_"+ Lang::getInstance().getLanguage() +".lng");
string englishFile=getGameCustomCoreDataPath(data_path, "data/lang/hint/hint_"+Lang::getInstance().getDefaultLanguage()+".lng");
string languageFile=getGameCustomCoreDataPath(data_path, "data/lang/hint/hint_"+ Lang::getInstance().getLanguage() +".lng");
if(fileExists(languageFile) == false){
// if there is no language specific file use english instead
languageFile=englishFile;