1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

updated cmakerules to autodetect if gettext can be used

fixed error if gettext is disabled
This commit is contained in:
Constantin Wenger 2011-07-23 22:36:11 +02:00
parent 4771b4951d
commit f6d9bcc9bb
4 changed files with 26 additions and 18 deletions

View file

@ -1132,10 +1132,12 @@ int main(int argc, char *argv[])
// Create user data directory
fs::CreateDir(porting::path_userdata);
#ifdef LC_MESSAGES
setlocale(LC_MESSAGES, "");
bindtextdomain("minetest", (porting::path_userdata+"/locale").c_str());
textdomain("minetest");
#endif
// Initialize debug streams
#ifdef RUN_IN_PLACE
std::string debugfile = DEBUGFILE;