mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 21:20:19 +00:00
86a80d37eb
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>
18 lines
360 B
C++
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
|