summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 8b631d56..018d93dd 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -85,6 +85,7 @@
#include "net/gameserver/gameserver.h"
#include "resources/equipmentdb.h"
+#include "resources/gettext.h"
#include "resources/image.h"
#include "resources/itemdb.h"
#include "resources/monsterdb.h"
@@ -666,6 +667,12 @@ int main(int argc, char *argv[])
return 0;
}
+#if ENABLE_NLS
+ setlocale(LC_MESSAGES, "");
+ bindtextdomain(PACKAGE, LOCALEDIR);
+ textdomain(PACKAGE);
+#endif
+
// Initialize PhysicsFS
PHYSFS_init(argv[0]);