- do not display missing lang string errors on console unless in verbose mode

This commit is contained in:
Mark Vejvoda 2012-07-26 15:39:44 +00:00
parent b665258897
commit 778bb788ef
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ string Lang::get(const string &s, string uselanguage, bool fallbackToDefault) {
if(strings.getpath() != "") {
if(fallbackToDefault == false || SystemFlags::VERBOSE_MODE_ENABLED) {
if(GlobalStaticFlags::getIsNonGraphicalModeEnabled() == false) {
SystemFlags::OutputDebug(SystemFlags::debugError,"In [%s::%s Line: %d] Error [%s] uselanguage [%s] text [%s]\n",__FILE__,__FUNCTION__,__LINE__,ex.what(),uselanguage.c_str(),s.c_str());
if(SystemFlags::VERBOSE_MODE_ENABLED) SystemFlags::OutputDebug(SystemFlags::debugError,"In [%s::%s Line: %d] Error [%s] uselanguage [%s] text [%s]\n",__FILE__,__FUNCTION__,__LINE__,ex.what(),uselanguage.c_str(),s.c_str());
}
}
}