diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-10-10 00:15:21 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-10 00:18:26 -0700 |
commit | 86a80d37eb3c99efd551aaa9c10687dd4c949899 (patch) | |
tree | b4b1dc6b258cd10e468e8f4cd6d721ecc4fcfa2b /gettextfromc.cpp | |
parent | 193d20c479d597db307ac5e206b74b26c2f97ba9 (diff) | |
download | subsurface-86a80d37eb3c99efd551aaa9c10687dd4c949899.tar.gz |
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>
Diffstat (limited to 'gettextfromc.cpp')
-rw-r--r-- | gettextfromc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gettextfromc.cpp b/gettextfromc.cpp index de278afeb..1730b52b0 100644 --- a/gettextfromc.cpp +++ b/gettextfromc.cpp @@ -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); } |