summaryrefslogtreecommitdiff
path: root/src/utils/translation/translationmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-02 22:54:36 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-03 00:46:28 +0300
commit519c2796e52ea933f6de5a490aee1f1ab826ea5e (patch)
tree01205558a568663d1c1ff67fda39ee84ce4051ec /src/utils/translation/translationmanager.h
parent2d2bbb2fe5a0dc55cbf5b9616a78500704b6ea65 (diff)
downloadplus-519c2796e52ea933f6de5a490aee1f1ab826ea5e.tar.gz
plus-519c2796e52ea933f6de5a490aee1f1ab826ea5e.tar.bz2
plus-519c2796e52ea933f6de5a490aee1f1ab826ea5e.tar.xz
plus-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/utils/translation/translationmanager.h')
-rw-r--r--src/utils/translation/translationmanager.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/translation/translationmanager.h b/src/utils/translation/translationmanager.h
index e6e56dd4a..e228b1e75 100644
--- a/src/utils/translation/translationmanager.h
+++ b/src/utils/translation/translationmanager.h
@@ -41,6 +41,10 @@ class TranslationManager final
static void loadCurrentLang();
+#ifdef ENABLE_CUSTOMNLS
+ static void loadGettextLang();
+#endif
+
static bool translateFile(const std::string &fileName,
PoDict *const dict,
StringVect &lines);