summaryrefslogtreecommitdiffstats
path: root/gettextfromc.h
blob: 7d7bca14252707cd1e656b09c0fe8c4d9b1c215a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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