12 #pragma warning(disable : 4251) 35 class LX_BASE_EXPORT CTranslator
55 typedef QMap<QString, int> CustomTranslationsTable;
58 static QString
get(
int id,
bool forceEnglish =
false);
59 static QString getSpecial(
int id,
bool forceEnglish =
false);
62 static QString getByEnglish(QString eng);
63 static QStringList getInAllLanguages(
int id);
65 static void setLanguage(Language lang);
66 static Language getLanguage();
67 static QString getLanguageAsString();
68 static void setLanguageFromString(
const QString& lang);
70 static CustomTranslationsTable readCustomTranslationsTable(
const QString&
filename);
71 static QString translate(
const CustomTranslationsTable& table,
const QString& source,
bool emptyIfNotInTable =
false);
73 static void showMessageId(
bool onoff);
75 static QString getCdwkStringFromLanguage(Language lang);
76 static Language getLanguageFromCdwkString(
const QString& lang);
78 static QLocale getQLocale();
80 static QString getTranslatorDirPath();
84 static CTranslator* _instance;
91 std::map<int, QString> _de;
94 std::map<int, QString> _en;
97 std::map<int, QString> _fr;
99 std::map<int, QString> _sp;
101 std::map<int, QString> _po;
103 std::map<int, QString> _ro;
105 std::map<int, QString> _hu;
107 std::map<int, QString> _ru;
109 std::map<int, QString> _pl;
111 std::map<int, QString> _it;
113 std::map<int, QString> _cz;
115 std::map<int, QString> _uk;
119 std::map<QString, int> _reverse_en;
126 std::map<int, Flags> _flags;
128 bool _showMessageId =
false;
136 bool loadFile(Language lang);
138 QString _getPathToTranslation(
wchar_t* dllName);
Core::PropertyText filename
Definition: CoreDocument.h:176
constexpr get_t< Type... > get
Variable template for lists of observed components.
Definition: entt.hpp:6068