openPilotLog
translator.h
1 #ifndef TRANSLATOR_H
2 #define TRANSLATOR_H
3 #include "src/opl.h"
4 
18 class Translator : public QObject {
19  Q_OBJECT
20 public:
24  static void installTranslator(OPL::Translation language = OPL::Translation::English);
25 
26 private:
27  static QTranslator *translator;
28 };
29 
30 #endif // TRANSLATOR_H
The ATranslator class is responsible for managing the QTranslator used for providing localisations....
Definition: translator.h:18
static void installTranslator(OPL::Translation language=OPL::Translation::English)
Installs a QTranslator with the selected language. Defaults to English. Call this function before con...
Definition: translator.cpp:5
Translation
Enumerates the available translations.
Definition: opl.h:107