Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't print locale directory error message when GetText is disabled
Also, downgrade the error to a warning.
  • Loading branch information
ShadowNinja committed Feb 20, 2016
1 parent 1b9aef4 commit a44393e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/porting.cpp
Expand Up @@ -558,8 +558,9 @@ void initializePaths()
infostream << "Detected user path: " << path_user << std::endl;
infostream << "Detected cache path: " << path_cache << std::endl;

#ifdef USE_GETTEXT
bool found_localedir = false;
#ifdef STATIC_LOCALEDIR
# ifdef STATIC_LOCALEDIR
if (STATIC_LOCALEDIR[0] && fs::PathExists(STATIC_LOCALEDIR)) {
found_localedir = true;
path_locale = STATIC_LOCALEDIR;
Expand All @@ -573,15 +574,16 @@ void initializePaths()
<< "(RUN_IN_PLACE or CUSTOM_LOCALEDIR)." << std::endl;
}
}
#else
# else
path_locale = getDataPath("locale");
if (fs::PathExists(path_locale)) {
found_localedir = true;
}
#endif
# endif
if (!found_localedir) {
errorstream << "Couldn't find a locale directory!" << std::endl;
warningstream << "Couldn't find a locale directory!" << std::endl;
}
#endif // USE_GETTEXT
}


Expand Down

0 comments on commit a44393e

Please sign in to comment.