summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-11-04 00:53:30 +0300
committerAndrei Karas <akaras@inbox.ru>2011-11-04 02:28:31 +0300
commit8f251ac16f72e2d56c66748cafce77823ea5a7dd (patch)
treee4196d6a71b284a0a6c0c871cbeb709c89bb3963 /src/main.cpp
parentf21e729bf1ce78449a23ce257f7287e1ead3e4c4 (diff)
downloadmanaplus-8f251ac16f72e2d56c66748cafce77823ea5a7dd.tar.gz
manaplus-8f251ac16f72e2d56c66748cafce77823ea5a7dd.tar.bz2
manaplus-8f251ac16f72e2d56c66748cafce77823ea5a7dd.tar.xz
manaplus-8f251ac16f72e2d56c66748cafce77823ea5a7dd.zip
Add option to settings for select any supported language. (tab Theme)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 5eceee77b..be3140c99 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -191,27 +191,6 @@ static void parseOptions(int argc, char *argv[], Client::Options &options)
extern "C" char const *_nl_locale_name_default(void);
#endif
-static void initInternationalization()
-{
-#if ENABLE_NLS
-#ifdef WIN32
- putenv(("LANG=" + std::string(_nl_locale_name_default())).c_str());
- // mingw doesn't like LOCALEDIR to be defined for some reason
- bindtextdomain("manaplus", "translations/");
-#else
-#ifdef ENABLE_PORTABLE
- bindtextdomain("manaplus", (std::string(PHYSFS_getBaseDir())
- + "../locale/").c_str());
-#else
- bindtextdomain("manaplus", LOCALEDIR);
-#endif
-#endif
- setlocale(LC_MESSAGES, "");
- bind_textdomain_codeset("manaplus", "UTF-8");
- textdomain("manaplus");
-#endif
-}
-
static void xmlNullLogger(void *ctx A_UNUSED, const char *msg A_UNUSED, ...)
{
// Does nothing, that's the whole point of it
@@ -260,8 +239,6 @@ int main(int argc, char *argv[])
return 1;
}
- initInternationalization();
-
atexit((void(*)()) PHYSFS_deinit);
initXML();