This commit is contained in:
bart
2026-11-08 17:06:47 +01:00
parent 17901ce25c
commit 408541c7e0
46 changed files with 1474 additions and 1057 deletions
+26
View File
@@ -0,0 +1,26 @@
#ifndef LOCALIZATION_H
#define LOCALIZATION_H
#include <QString>
#include <QMap>
class YamlNode;
class Localization {
public:
static Localization& instance();
bool loadFile(const QString &filePath);
QString get(const QString &key, const QString &defaultVal = "") const;
private:
Localization();
~Localization() = default;
void flattenNode(const YamlNode &node, const QString &prefix);
QMap<QString, QString> m_strings;
bool m_loaded;
};
#endif // LOCALIZATION_H