- do not display missing lang string errors on console unless in verbose mode
This commit is contained in:
parent
b665258897
commit
778bb788ef
|
@ -402,7 +402,7 @@ string Lang::get(const string &s, string uselanguage, bool fallbackToDefault) {
|
||||||
if(strings.getpath() != "") {
|
if(strings.getpath() != "") {
|
||||||
if(fallbackToDefault == false || SystemFlags::VERBOSE_MODE_ENABLED) {
|
if(fallbackToDefault == false || SystemFlags::VERBOSE_MODE_ENABLED) {
|
||||||
if(GlobalStaticFlags::getIsNonGraphicalModeEnabled() == false) {
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user