subsurface/gettextfromc.h

19 lines
356 B
C
Raw Normal View History

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