summaryrefslogtreecommitdiffstats
path: root/gettext.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-09 22:48:35 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-09 22:51:59 -0700
commit193d20c479d597db307ac5e206b74b26c2f97ba9 (patch)
treeb9f55e5acbacb4d397edb022cf8a37ef4654efbf /gettext.h
parent2d69d4a5ef5f2d3e777d77380732c333151fe949 (diff)
downloadsubsurface-193d20c479d597db307ac5e206b74b26c2f97ba9.tar.gz
Next step towards working translations
This may seem like a really odd change - but with this change the Qt tools can correctly parse the C files (and qt-gui.cpp) and get the context for the translatable strings right. It's not super-pretty (I'll admit that _("string literal") is much easier on the eye than translate("gettextFromC", "string literal") ) but I think this will be the price of success. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gettext.h')
-rw-r--r--gettext.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gettext.h b/gettext.h
index d3283998d..5f987c1a4 100644
--- a/gettext.h
+++ b/gettext.h
@@ -3,7 +3,7 @@
/* this is for the Qt based translations */
extern const char *gettext(const char *);
-#define tr(arg) gettext(arg)
-#define QT_TR_NOOP(arg) arg
+#define translate(_context, arg) gettext(arg)
+#define QT_TRANSLATE_NOOP(_context, arg) arg
#endif // MYGETTEXT_H