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:
Dirk Hohndel 2013-10-10 00:15:21 -07:00
parent 193d20c479
commit 86a80d37eb
4 changed files with 8 additions and 8 deletions

View file

@ -2,7 +2,7 @@
#include <QString>
#include <gettextfromc.h>
const char *gettextFromC::gettext(const char *text)
const char *gettextFromC::trGettext(const char *text)
{
QByteArray &result = translationCache[text];
if (result.isEmpty())
@ -21,7 +21,7 @@ gettextFromC* gettextFromC::instance()
return self;
}
extern "C" const char *gettext(const char *text)
extern "C" const char *trGettext(const char *text)
{
return gettextFromC::instance()->gettext(text);
return gettextFromC::instance()->trGettext(text);
}