From 4138f6a5a35d25e69b6f1f35850c9dfa4e999971 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Tue, 18 Oct 2016 11:14:55 +0200 Subject: [PATCH] Language for product update matches UI language not OS Regional settings now --- ZRCola/zrcolaupdater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ZRCola/zrcolaupdater.cpp b/ZRCola/zrcolaupdater.cpp index 5f7ef57..4de71f6 100644 --- a/ZRCola/zrcolaupdater.cpp +++ b/ZRCola/zrcolaupdater.cpp @@ -41,7 +41,7 @@ wxZRColaUpdater::wxZRColaUpdater(wxWindow* parent) : // Prepare Updater. auto app = dynamic_cast(wxTheApp); - m_updater = new wxUpdCheckThread(app->m_locale.GetCanonicalName(), this); + m_updater = new wxUpdCheckThread(app->m_lang_ui == wxLANGUAGE_DEFAULT ? wxT("en_US") : wxLocale::GetLanguageCanonicalName(app->m_lang_ui), this); //if (m_updater->Run() != wxTHREAD_NO_ERROR) { // wxFAIL_MSG(wxT("Can't create the thread!")); // delete m_updater;