aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorConstantin Wenger <constantin.wenger@googlemail.com>2011-07-20 16:51:19 +0200
committerConstantin Wenger <constantin.wenger@googlemail.com>2011-07-20 16:51:19 +0200
commit052bb24c7f03e5542be2b8c2a14662fcbf928a42 (patch)
treeb82d6fa9554fe4e6b4c6751cc1bba054965f73d3 /src/main.cpp
parentd0810b0156073833b9966672c86b5fc3650dade9 (diff)
downloadminetest-052bb24c7f03e5542be2b8c2a14662fcbf928a42.tar.xz
added gettext support
german translation file and bashscript to update translations
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 698c5fc71..1cc479d65 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -401,6 +401,8 @@ Doing currently:
#include "keycode.h"
#include "tile.h"
+#include "gettext.h"
+
// This makes textures
ITextureSource *g_texturesource = NULL;
@@ -1058,6 +1060,9 @@ int main(int argc, char *argv[])
std::locale::global(std::locale("C"));
// This enables printing all characters in bitmap font
setlocale(LC_CTYPE, "en_US");
+ setlocale(LC_ALL, "");
+ bindtextdomain("minetest-c55", "./../locale");
+ textdomain("minetest-c55");
/*
Parse command line