mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Dismbiguate gettext
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>
This commit is contained in:
parent
193d20c479
commit
86a80d37eb
4 changed files with 8 additions and 8 deletions
|
|
@ -3,14 +3,14 @@
|
|||
|
||||
#include <QHash>
|
||||
|
||||
extern "C" const char *gettext(const char *text);
|
||||
extern "C" const char *trGettext(const char *text);
|
||||
|
||||
class gettextFromC
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(gettextFromC)
|
||||
public:
|
||||
static gettextFromC *instance();
|
||||
const char *gettext(const char *text);
|
||||
const char *trGettext(const char *text);
|
||||
void reset(void);
|
||||
QHash <const char *, QByteArray> translationCache;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue