12 #pragma warning(disable : 4251) 56 typedef QMap<QString, int> CustomTranslationsTable;
59 static QString
get(
int id,
bool forceEnglish =
false);
60 static QString getSpecial(
int id,
bool forceEnglish =
false);
61 static QStringList getInAllLanguages(
int id);
63 static void setLanguage(Language lang);
64 static Language getLanguage();
65 static QString getLanguageAsString();
66 static void setLanguageFromString(
const QString& lang);
68 static CustomTranslationsTable readCustomTranslationsTable(
const QString&
filename);
69 static QString translate(
const CustomTranslationsTable& table,
const QString& source,
bool emptyIfNotInTable =
false);
71 static void showMessageId(
bool onoff);
72 static void showCodeId(
bool onoff);
74 static QString getCdwkStringFromLanguage(Language lang);
75 static Language getLanguageFromCdwkString(
const QString& lang);
77 static QLocale getQLocale();
79 static QString getTranslatorDirPath();
83 static CTranslator* _instance;
90 std::map<int, QString> _de;
93 std::map<int, QString> _en;
96 std::map<int, QString> _fr;
98 std::map<int, QString> _sp;
100 std::map<int, QString> _po;
102 std::map<int, QString> _ro;
104 std::map<int, QString> _hu;
106 std::map<int, QString> _ru;
108 std::map<int, QString> _pl;
110 std::map<int, QString> _it;
112 std::map<int, QString> _cz;
114 std::map<int, QString> _uk;
123 std::map<int, Flags> _flags;
125 bool _showMessageId =
false;
126 bool _showCodeId =
false;
134 bool loadFile(Language lang);
136 QString _getPathToTranslation(
wchar_t* dllName);
#define BASE_EXPORT
Definition: base_defines.h:12
Core::PropertyText filename
Definition: CoreDocument.h:151
constexpr get_t< Type... > get
Variable template for lists of observed components.
Definition: entt.hpp:6068