subsurface/gettextfromc.h
Dirk Hohndel 86a80d37eb Dismbiguate gettext
Just to make sure there's no confusion - we are NOT calling gettext. We
are calling tr from a gettext like interface.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-10-10 00:18:26 -07:00

18 lines
360 B
C++

#ifndef GETTEXTFROMC_H
#define GETTEXTFROMC_H
#include <QHash>
extern "C" const char *trGettext(const char *text);
class gettextFromC
{
Q_DECLARE_TR_FUNCTIONS(gettextFromC)
public:
static gettextFromC *instance();
const char *trGettext(const char *text);
void reset(void);
QHash <const char *, QByteArray> translationCache;
};
#endif // GETTEXTFROMC_H