aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-07-23 19:01:51 -0700
committerNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-07-23 19:01:51 -0700
commitf4a08f7fb3c9a249ad1256e2cf1a2e2ca3f2a709 (patch)
tree10f243e6ebcfcae48c3bed491ed1e6f18e19a4f7 /src/main.cpp
parenta7daf8e652a3354c5e5128d070b8547722a0d7ca (diff)
parentf6d9bcc9bb020f79f73bc2cf0187f73a6d1d9275 (diff)
downloadminetest-f4a08f7fb3c9a249ad1256e2cf1a2e2ca3f2a709.tar.gz
minetest-f4a08f7fb3c9a249ad1256e2cf1a2e2ca3f2a709.tar.bz2
minetest-f4a08f7fb3c9a249ad1256e2cf1a2e2ca3f2a709.zip
Merge pull request #34 from SpeedProg/master
Changes to make gettext enabled if it is found
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b94d0c361..11941a43f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1132,10 +1132,12 @@ int main(int argc, char *argv[])
// Create user data directory
fs::CreateDir(porting::path_userdata);
+#ifdef LC_MESSAGES
setlocale(LC_MESSAGES, "");
bindtextdomain("minetest", (porting::path_userdata+"/locale").c_str());
textdomain("minetest");
-
+#endif
+
// Initialize debug streams
#ifdef RUN_IN_PLACE
std::string debugfile = DEBUGFILE;