2 #pragma warning(disable : 4251) 26 static QString
get(
int id,
bool forceEnglish =
false);
27 static QString getSpecial(
int id,
bool forceEnglish =
false);
28 static QStringList getInAllLanguages(
int id);
30 static void setLanguage(CTranslator::Language lang);
31 static CTranslator::Language getLanguage();
32 static QString getLanguageAsString();
33 static void setLanguageFromString(
const QString& lang);
36 static QString translate(
const CustomTranslationsTable& table,
const QString& source,
bool emptyIfNotInTable =
false);
38 static void showMessageId(
bool onoff);
39 static void showCodeId(
bool onoff);
41 static QString getCdwkStringFromLanguage(CTranslator::Language lang);
42 static CTranslator::Language getLanguageFromCdwkString(
const QString& lang);
49 CTranslator::Language _lang;
52 std::map<int, QString> _de;
54 std::map<int, QString> _en;
56 std::map<int, QString> _fr;
58 std::map<int, QString> _sp;
60 std::map<int, QString> _po;
62 std::map<int, QString> _ro;
64 std::map<int, QString> _hu;
66 std::map<int, QString> _ru;
68 std::map<int, QString> _pl;
70 std::map<int, QString> _it;
72 std::map<int, QString> _cz;
74 std::map<int, QString> _uk;
85 std::map<int, Flags> _flags;
87 bool _showMessageId =
false;
88 bool _showCodeId =
false;
96 bool loadFile(CTranslator::Language lang)
const;
98 QString _getPathToTranslation(
wchar_t* dllName)
const;
QMap< QString, int > CustomTranslationsTable
Definition: TranslatorPython.h:24
Definition: TranslatorPython.h:21
Core::PropertyText filename
Definition: CoreDocument.h:176
constexpr get_t< Type... > get
Variable template for lists of observed components.
Definition: entt.hpp:6068