*/
#include <string>
-#include <string.h>
+#include <cstring>
#include <iostream>
-#include <stdlib.h>
+#include <cstdlib>
#include "gettext.h"
#include "util/string.h"
#include "log.h"
// Allow calling without an extension
std::string app_name = argv[0];
- if (app_name.compare(appname.size() - 4, 4, ".exe") != 0)
+ if (app_name.compare(app_name.size() - 4, 4, ".exe") != 0)
app_name += ".exe";
STARTUPINFO startup_info = {0};
#endif
#endif
- static std::string name = lowercase(PROJECT_NAME);
+ std::string name = lowercase(PROJECT_NAME);
+ infostream << "Gettext: domainname=\"" << name
+ << "\" path=\"" << path << "\"" << std::endl;
+
bindtextdomain(name.c_str(), path);
textdomain(name.c_str());
infostream << "Message locale is now set to: "
<< setlocale(LC_ALL, 0) << std::endl;
}
-