1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#ifndef GETTEXT_H #define GETTEXT_H extern "C" const char *gettext(const char *text); class gettextFromC { Q_DECLARE_TR_FUNCTIONS(gettextFromC) public: static gettextFromC *instance(); char *gettext(const char *text); }; #endif // GETTEXT_H