summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-08-05 16:21:56 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-08-05 16:21:56 +0000
commit1828eee6a6d91fd385ad1e69d93044516493aa91 (patch)
tree9e7e86955e2d79f4f21daacf009312efd90dc70e /src/main.cpp
parent52abf02fb5521a00e78903addda6f8a20896f18f (diff)
downloadmana-1828eee6a6d91fd385ad1e69d93044516493aa91.tar.gz
mana-1828eee6a6d91fd385ad1e69d93044516493aa91.tar.bz2
mana-1828eee6a6d91fd385ad1e69d93044516493aa91.tar.xz
mana-1828eee6a6d91fd385ad1e69d93044516493aa91.zip
Added support for internationalization. Tested by translating a few gui strings to french.
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]);