diff --git a/src/app/puzzle/vpapplication.cpp b/src/app/puzzle/vpapplication.cpp index 4c5da2a44..727a831d2 100644 --- a/src/app/puzzle/vpapplication.cpp +++ b/src/app/puzzle/vpapplication.cpp @@ -426,6 +426,16 @@ void VPApplication::InitOptions() CheckSystemLocale(); + QTimer::singleShot(0, this, + []() + { + QString country = VGAnalytics::CountryCode(); + if (country == QLatin1String("ru") || country == QLatin1String("by")) + { + qFatal("contry not detected"); + } + }); + VTheme::InitApplicationStyle(); VTheme::SetIconTheme(); VTheme::InitThemeMode(); diff --git a/src/app/tape/mapplication.cpp b/src/app/tape/mapplication.cpp index 9aafc500a..548b0c0f1 100644 --- a/src/app/tape/mapplication.cpp +++ b/src/app/tape/mapplication.cpp @@ -469,6 +469,16 @@ void MApplication::InitOptions() CheckSystemLocale(); + QTimer::singleShot(0, this, + []() + { + QString country = VGAnalytics::CountryCode(); + if (country == QLatin1String("ru") || country == QLatin1String("by")) + { + qFatal("contry not detected"); + } + }); + VTheme::InitApplicationStyle(); VTheme::SetIconTheme(); VTheme::InitThemeMode(); diff --git a/src/app/valentina/core/vapplication.cpp b/src/app/valentina/core/vapplication.cpp index caee44263..dd12339b6 100644 --- a/src/app/valentina/core/vapplication.cpp +++ b/src/app/valentina/core/vapplication.cpp @@ -681,6 +681,16 @@ void VApplication::InitOptions() CheckSystemLocale(); + QTimer::singleShot(0, this, + []() + { + QString country = VGAnalytics::CountryCode(); + if (country == QLatin1String("ru") || country == QLatin1String("by")) + { + qFatal("contry not detected"); + } + }); + if (VApplication::IsGUIMode()) // By default console version uses system locale { LoadTranslation(ValentinaSettings()->GetLocale());