forked from Mirrorlandia_minetest/minetest
Don't print locale directory error message when GetText is disabled
Also, downgrade the error to a warning.
This commit is contained in:
@ -558,6 +558,7 @@ void initializePaths()
|
|||||||
infostream << "Detected user path: " << path_user << std::endl;
|
infostream << "Detected user path: " << path_user << std::endl;
|
||||||
infostream << "Detected cache path: " << path_cache << std::endl;
|
infostream << "Detected cache path: " << path_cache << std::endl;
|
||||||
|
|
||||||
|
#ifdef USE_GETTEXT
|
||||||
bool found_localedir = false;
|
bool found_localedir = false;
|
||||||
# ifdef STATIC_LOCALEDIR
|
# ifdef STATIC_LOCALEDIR
|
||||||
if (STATIC_LOCALEDIR[0] && fs::PathExists(STATIC_LOCALEDIR)) {
|
if (STATIC_LOCALEDIR[0] && fs::PathExists(STATIC_LOCALEDIR)) {
|
||||||
@ -580,8 +581,9 @@ void initializePaths()
|
|||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
if (!found_localedir) {
|
if (!found_localedir) {
|
||||||
errorstream << "Couldn't find a locale directory!" << std::endl;
|
warningstream << "Couldn't find a locale directory!" << std::endl;
|
||||||
}
|
}
|
||||||
|
#endif // USE_GETTEXT
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user