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
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue