10 #ifndef GUARD_TRANSLANG_H_INCLUDE
11 #define GUARD_TRANSLANG_H_INCLUDE
13 #include <translate/translate-config.h>
16 #include <QTranslator>
28 const QString & langfile,
31 const QString & locale);
79 const QMap<QString, QString> &
85 hasCachedTranslator ()
const {
86 return transl_ != NULL;
90 hasCachedQtTranslator ()
const {
91 return qttransl_ != NULL;
112 const QString & value);
121 QMap<QString, QString> metadata_;
122 QTranslator * transl_;
123 QTranslator * qttransl_;
126 inline bool operator== (
133 inline bool operator!= (
135 return !operator==(lhs, rhs);
138 #endif // GUARD_TRANSLANG_H_INCLUDE
static QTranslator * qtTranslator(int i)
Create a Qt translator.
Definition: translate.cc:299
brief description
Definition: translang.h:19
const QString & langDirectory() const
Absolute paths towards language directory.
Definition: translang.h:46
const QString & langFile() const
Get the absolute path for the language file.
Definition: translang.h:52
const QString & langIcon() const
Get the icon of this language.
Definition: translang.h:74
static QTranslator * translator(int i)
Create a Qt translator.
Definition: translate.cc:287
const QString & localeName() const
Get the name of this locale.
Definition: translang.h:68
brief description
Definition: translate.h:18
const QString & langName() const
Get the name of this language.
Definition: translang.h:62
const QMap< QString, QString > & metadata() const
Get the icon of this language.
Definition: translang.h:80
static void translatorDone(int i)
Release cached translator.
Definition: translate.cc:311