blob: 4976d70f88b9eda7e4a7f60d29299dfe08ad2eb0 (
plain) (
tree)
|
|
#include <QCoreApplication>
#include <QString>
#include <gettextfromc.h>
char *gettextFromC::gettext(const char *text)
{
return tr(text).toLocal8Bit().data();
}
gettextFromC* gettextFromC::instance()
{
static gettextFromC *self = new gettextFromC();
return self;
}
extern "C" const char *gettext(const char *text)
{
return gettextFromC::instance()->gettext(text);
}
|