diff options
author | Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com> | 2017-12-20 00:20:38 +0900 |
---|---|---|
committer | Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com> | 2017-12-20 00:20:38 +0900 |
commit | 673e806f312b1fda4bee4af30e59699bb1f3547c (patch) | |
tree | 9754ee55da016c6b73080ec858e0fec200aa1a97 /app/translator.h | |
parent | 8651e32f3897c10cb2a71464fc8122b288091472 (diff) |
Revert "I18N: add basic functionality and a few translations"
NOTE: I18N features isn't supported in EEL/CES2018 yet.
This reverts commit e26dac76bc82ba7888726cc0b2eb5103b50ef17e.
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Diffstat (limited to 'app/translator.h')
-rw-r--r-- | app/translator.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/app/translator.h b/app/translator.h deleted file mode 100644 index 82c5872..0000000 --- a/app/translator.h +++ /dev/null @@ -1,32 +0,0 @@ -#ifndef TRANSLATOR_H -#define TRANSLATOR_H - -#include <QtCore/QObject> - -class QTranslator; - -class Translator : public QObject -{ - Q_OBJECT - Q_PROPERTY(QString language READ language WRITE setLanguage NOTIFY languageChanged) -public: - explicit Translator(QObject *parent = nullptr); - - QString language() const; - - Q_INVOKABLE QString translate(const QString &string, const QString &language) const; -public slots: - void setLanguage(const QString &language); - -signals: - void languageChanged(const QString &language); - -private slots: - void setTranslator(const QString &language); - -private: - QString m_language; - QTranslator *m_translator; -}; - -#endif // TRANSLATOR_H |