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:
parent
4771b4951d
commit
f6d9bcc9bb
4 changed files with 26 additions and 18 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue