diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-01-02 22:54:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-03 00:46:28 +0300 |
commit | 519c2796e52ea933f6de5a490aee1f1ab826ea5e (patch) | |
tree | 01205558a568663d1c1ff67fda39ee84ce4051ec /src/client.cpp | |
parent | 2d2bbb2fe5a0dc55cbf5b9616a78500704b6ea65 (diff) | |
download | mv-519c2796e52ea933f6de5a490aee1f1ab826ea5e.tar.gz mv-519c2796e52ea933f6de5a490aee1f1ab826ea5e.tar.bz2 mv-519c2796e52ea933f6de5a490aee1f1ab826ea5e.tar.xz mv-519c2796e52ea933f6de5a490aee1f1ab826ea5e.zip |
Add support for custom NLS (without gettext).
Add configure flag --enable-customnls
Add empty directory in data/translations/manaplus for suctom translations
(po files from /po directory)
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index 04262b45c..6506c9241 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -246,6 +246,7 @@ void Client::testsInit() Dirs::initLocalDataDir(); Dirs::initTempDir(); Dirs::initConfigDir(); + GettextHelper::initLang(); } } @@ -376,6 +377,9 @@ void Client::gameInit() // Add the local data directory to PhysicsFS search path resourceManager->addToSearchPath(settings.localDataDir, Append_false); TranslationManager::loadCurrentLang(); +#ifdef ENABLE_CUSTOMNLS + TranslationManager::loadGettextLang(); +#endif WindowManager::initTitle(); |