summaryrefslogtreecommitdiffstats
path: root/gettext.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-06 08:55:58 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-06 10:42:32 -0700
commit4d3e74a23676a33ffdc04a4a8b83c05f63b2693c (patch)
tree23cff2046459ab33f32499e71e7caeb5892dbcd6 /gettext.h
parent2c4ccc04bd384090917d7d17221012611426edb3 (diff)
downloadsubsurface-4d3e74a23676a33ffdc04a4a8b83c05f63b2693c.tar.gz
Trying to switch to Qt translation
This compiles and looks about right, but it doesn't appear to work, yet. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gettext.h')
-rw-r--r--gettext.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gettext.h b/gettext.h
new file mode 100644
index 000000000..d3283998d
--- /dev/null
+++ b/gettext.h
@@ -0,0 +1,9 @@
+#ifndef MYGETTEXT_H
+#define MYGETTEXT_H
+
+/* this is for the Qt based translations */
+extern const char *gettext(const char *);
+#define tr(arg) gettext(arg)
+#define QT_TR_NOOP(arg) arg
+
+#endif // MYGETTEXT_H