From 519c2796e52ea933f6de5a490aee1f1ab826ea5e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 2 Jan 2016 22:54:36 +0300 Subject: 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) --- src/client.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/client.cpp') 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(); -- cgit v1.2.3-70-g09d2