summaryrefslogtreecommitdiff
path: root/src/gettext.cpp
diff options
context:
space:
mode:
authorjh10001 <jh10001@live.cn>2015-09-01 02:36:02 +0800
committerest31 <MTest31@outlook.com>2015-09-01 00:26:11 +0200
commitdce9468925b2208b8178722af218d9cd30a35a64 (patch)
tree08a5286a7dd89a1136fa487f1b0925e95e801619 /src/gettext.cpp
parent714b68add28bc0604f8bbc670c8faa34dae00e20 (diff)
downloadminetest-dce9468925b2208b8178722af218d9cd30a35a64.tar.gz
minetest-dce9468925b2208b8178722af218d9cd30a35a64.tar.bz2
minetest-dce9468925b2208b8178722af218d9cd30a35a64.zip
gettext.cpp: Fix syntax error when using MSVC
Also remove trailing whitespaces from the file
Diffstat (limited to 'src/gettext.cpp')
-rw-r--r--src/gettext.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gettext.cpp b/src/gettext.cpp
index 0fd6b574e..e8819f131 100644
--- a/src/gettext.cpp
+++ b/src/gettext.cpp
@@ -167,7 +167,7 @@ void init_gettext(const char *path, const std::string &configured_language) {
if (parameters != "") {
ptr_parameters = parameters.c_str();
}
-
+
/** users may start by short name in commandline without extention **/
std::string appname = argv[0];
if (appname.substr(appname.length() - 4) != ".exe") {
@@ -184,7 +184,7 @@ void init_gettext(const char *path, const std::string &configured_language) {
NULL,
&startupinfo,
&processinfo)) {
- char buffer[1024];
+ char buffer[1024];
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM,
NULL,
GetLastError(),
@@ -202,14 +202,14 @@ void init_gettext(const char *path, const std::string &configured_language) {
else {
exit(0);
}
+ }
#else
- errorstream << "*******************************************************" << std::endl;
- errorstream << "Can't apply locale workaround for server!" << std::endl;
- errorstream << "Expect language to be broken!" << std::endl;
- errorstream << "*******************************************************" << std::endl;
+ errorstream << "*******************************************************" << std::endl;
+ errorstream << "Can't apply locale workaround for server!" << std::endl;
+ errorstream << "Expect language to be broken!" << std::endl;
+ errorstream << "*******************************************************" << std::endl;
#endif
- }
setlocale(LC_ALL,configured_language.c_str());
#else // Mingw