Skip to content
Snippets Groups Projects
Commit df27b854 authored by Perttu Ahola's avatar Perttu Ahola
Browse files

quick fix to it not building with gettext on my visual studio environment

parent 1de45cc8
No related branches found
No related tags found
No related merge requests found
......@@ -2,8 +2,6 @@
#include <libintl.h>
#else
#define gettext(String) String
#define bindtextdomain(domain, dir) /* */
#define textdomain(domain) /* */
#endif
#define _(String) gettext(String)
......
......@@ -1161,9 +1161,11 @@ int main(int argc, char *argv[])
// Create user data directory
fs::CreateDir(porting::path_userdata);
#ifdef USE_GETTEXT
setlocale(LC_MESSAGES, "");
bindtextdomain("minetest", (porting::path_userdata+"/locale").c_str());
textdomain("minetest");
#endif
// Initialize debug streams
#ifdef RUN_IN_PLACE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment