diff --git a/main.cpp b/main.cpp index dcbb225..4aa7d45 100644 --- a/main.cpp +++ b/main.cpp @@ -50,8 +50,11 @@ int main(int argc, char *argv[]) { QTranslator translator; 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")) { +#endif lang = QString::fromStdString(s.get_all_settings()["language"]); } else if (translator.load(":/translation/"+QLocale::system().name()+".qm")) { lang = QLocale::system().name();