From 4d3e74a23676a33ffdc04a4a8b83c05f63b2693c Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 6 Oct 2013 08:55:58 -0700 Subject: 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 --- gettextfromc.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 gettextfromc.h (limited to 'gettextfromc.h') 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 -- cgit v1.2.3-70-g09d2