mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
76e6420f6b
I know everyone will hate it. Go ahead. Complain. Call me names. At least now things are consistent and reproducible. If you want changes, have your complaint come with a patch to scripts/whitespace.pl so that we can automate it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
17 lines
358 B
C++
17 lines
358 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<QByteArray, QByteArray> translationCache;
|
|
};
|
|
|
|
#endif // GETTEXTFROMC_H
|