diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-10-06 08:55:58 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-06 10:42:32 -0700 |
commit | 4d3e74a23676a33ffdc04a4a8b83c05f63b2693c (patch) | |
tree | 23cff2046459ab33f32499e71e7caeb5892dbcd6 /gettextfromc.h | |
parent | 2c4ccc04bd384090917d7d17221012611426edb3 (diff) | |
download | subsurface-4d3e74a23676a33ffdc04a4a8b83c05f63b2693c.tar.gz |
Trying to switch to Qt translation
This compiles and looks about right, but it doesn't appear to work, yet.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gettextfromc.h')
-rw-r--r-- | gettextfromc.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gettextfromc.h b/gettextfromc.h new file mode 100644 index 000000000..3852709c9 --- /dev/null +++ b/gettextfromc.h @@ -0,0 +1,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 |