summaryrefslogtreecommitdiffstats
path: root/qthelper.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-08 22:25:02 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-08 23:11:25 -0700
commit7813ac86bf5bfaeee3d4652b35dcfd8972775423 (patch)
treee055e7dd4b8497248d4528732715cb638da8257c /qthelper.h
parentc260ec5c1673f9071b0c9c5407944ecb35bf5ff2 (diff)
downloadsubsurface-7813ac86bf5bfaeee3d4652b35dcfd8972775423.tar.gz
Load translations at run time
This doesn't enable translation switching, but at least we try and load the correct translation at startup. We create two global pointers for the currently active translations. This also removes the remainders of the gettext()/glib based translation system. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qthelper.h')
-rw-r--r--qthelper.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/qthelper.h b/qthelper.h
index 0ab184b78..cd0d8affa 100644
--- a/qthelper.h
+++ b/qthelper.h
@@ -5,6 +5,10 @@
#include <QString>
#include <stdint.h>
#include "dive.h"
+#include <QTranslator>
+
+// global pointers for our translation
+extern QTranslator *qtTranslator, *ssrfTranslator;
class DiveComputerNode {
public: