mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
gettext.cpp: Fix syntax error when using MSVC
Also remove trailing whitespaces from the file
This commit is contained in:
parent
714b68add2
commit
dce9468925
1 changed files with 7 additions and 7 deletions
|
@ -202,14 +202,14 @@ void init_gettext(const char *path, const std::string &configured_language) {
|
||||||
else {
|
else {
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
errorstream << "*******************************************************" << std::endl;
|
errorstream << "*******************************************************" << std::endl;
|
||||||
errorstream << "Can't apply locale workaround for server!" << std::endl;
|
errorstream << "Can't apply locale workaround for server!" << std::endl;
|
||||||
errorstream << "Expect language to be broken!" << std::endl;
|
errorstream << "Expect language to be broken!" << std::endl;
|
||||||
errorstream << "*******************************************************" << std::endl;
|
errorstream << "*******************************************************" << std::endl;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
|
|
||||||
setlocale(LC_ALL,configured_language.c_str());
|
setlocale(LC_ALL,configured_language.c_str());
|
||||||
#else // Mingw
|
#else // Mingw
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue