todo
This commit is contained in:
parent
51d8600be0
commit
89afe836be
5
main.cpp
5
main.cpp
|
@ -50,8 +50,11 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
QTranslator translator;
|
QTranslator translator;
|
||||||
QString lang = "en_US";
|
QString lang = "en_US";
|
||||||
|
#if NLOHMANN_JSON_VERSION_MAJOR < 3 && NLOHMANN_JSON_VERSION_MINOR < 6 && NLOHMANN_JSON_VERSION_PATCH
|
||||||
|
//TODO: implement
|
||||||
|
#else
|
||||||
if (s.get_all_settings().contains("language")) {
|
if (s.get_all_settings().contains("language")) {
|
||||||
|
#endif
|
||||||
lang = QString::fromStdString(s.get_all_settings()["language"]);
|
lang = QString::fromStdString(s.get_all_settings()["language"]);
|
||||||
} else if (translator.load(":/translation/"+QLocale::system().name()+".qm")) {
|
} else if (translator.load(":/translation/"+QLocale::system().name()+".qm")) {
|
||||||
lang = QLocale::system().name();
|
lang = QLocale::system().name();
|
||||||
|
|
Loading…
Reference in New Issue