From 89afe836befc4adfba6b50918efc0612789ccabe Mon Sep 17 00:00:00 2001 From: leca Date: Fri, 21 Mar 2025 00:46:17 +0300 Subject: [PATCH] todo --- main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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();