subsurface/gettext.h
Dirk Hohndel 193d20c479 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>
2013-10-09 22:51:59 -07:00

10 lines
241 B
C

#ifndef MYGETTEXT_H
#define MYGETTEXT_H
/* this is for the Qt based translations */
extern const char *gettext(const char *);
#define translate(_context, arg) gettext(arg)
#define QT_TRANSLATE_NOOP(_context, arg) arg
#endif // MYGETTEXT_H