2013-10-09 05:44:38 +00:00
|
|
|
#ifndef GETTEXTFROMC_H
|
|
|
|
#define GETTEXTFROMC_H
|
2013-10-06 15:55:58 +00:00
|
|
|
|
2013-10-09 05:44:38 +00:00
|
|
|
#include <QHash>
|
2013-10-06 15:55:58 +00:00
|
|
|
|
2013-10-10 07:15:21 +00:00
|
|
|
extern "C" const char *trGettext(const char *text);
|
2013-10-06 15:55:58 +00:00
|
|
|
|
|
|
|
class gettextFromC
|
|
|
|
{
|
|
|
|
Q_DECLARE_TR_FUNCTIONS(gettextFromC)
|
|
|
|
public:
|
|
|
|
static gettextFromC *instance();
|
2013-10-10 07:15:21 +00:00
|
|
|
const char *trGettext(const char *text);
|
2013-10-09 05:44:38 +00:00
|
|
|
void reset(void);
|
2013-11-01 17:23:06 +00:00
|
|
|
QHash <QByteArray , QByteArray> translationCache;
|
2013-10-06 15:55:58 +00:00
|
|
|
};
|
|
|
|
|
2013-10-09 05:44:38 +00:00
|
|
|
#endif // GETTEXTFROMC_H
|