diff options
author | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2011-07-20 08:56:35 -0700 |
---|---|---|
committer | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2011-07-20 08:56:35 -0700 |
commit | cef7bb06195f3923f5c47547b48fe6e6e51c932d (patch) | |
tree | ba62a3b476ea55aaf18cd6825f0e67050a6db631 /src/main.cpp | |
parent | d0810b0156073833b9966672c86b5fc3650dade9 (diff) | |
parent | a006b828a672083e1f81dc599f1a8f5f11d50768 (diff) | |
download | minetest-cef7bb06195f3923f5c47547b48fe6e6e51c932d.tar.gz minetest-cef7bb06195f3923f5c47547b48fe6e6e51c932d.tar.bz2 minetest-cef7bb06195f3923f5c47547b48fe6e6e51c932d.zip |
Merge pull request #22 from SpeedProg/master
added gettext support
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
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
|