1 #ifndef H_EXTENSIONS_CUTEHMI_2_INCLUDE_CUTEHMI_INTERNATIONALIZER_HPP
2 #define H_EXTENSIONS_CUTEHMI_2_INCLUDE_CUTEHMI_INTERNATIONALIZER_HPP
4 #include "internal/common.hpp"
5 #include "Singleton.hpp"
23 friend class test_Internationalizer;
29 Q_PROPERTY(
QString uiLanguage READ uiLanguage WRITE setUILanguage NOTIFY uiLanguageChanged)
41 void setUILanguage(
const QString & uiLanguage);
46 Q_INVOKABLE
void loadQtTranslation();
51 Q_INVOKABLE
void unloadQtTranslation();
72 Q_INVOKABLE
void loadTranslation(
const QString & product,
bool dependencies =
true);
78 Q_INVOKABLE
void unloadTranslation(
const QString & product);
85 Q_INVOKABLE
void unloadTranslations(
bool qt =
true);
104 Q_INVOKABLE
QStringList standardTranslationDirectories()
const;
112 Q_INVOKABLE
QStringList additionalTranslationDirectories()
const;
120 Q_INVOKABLE
void setAdditionalTranslationDirectories(
const QStringList & additionalDirectories);
126 void uiLanguageChanged();
137 void loadTranslation(
QStringList & skippedProducts,
const QString & product,
bool dependencies);
141 void updateQtTranslation(
QTranslator & translator);