translator.h
#ifndef TRANSLATOR_H
#define TRANSLATOR_H
#include "src/opl.h"
class Translator : public QObject {
Q_OBJECT
public:
static void installTranslator(OPL::Translation language = OPL::Translation::English);
private:
static QTranslator *translator;
};
#endif // TRANSLATOR_H
Translator
The ATranslator class is responsible for managing the QTranslator used for providing localisations....
Definition: translator.h:18
Translator::installTranslator
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
OPL::Translation
Translation
Enumerates the available translations.
Definition: opl.h:107