Language for product update matches UI language not OS Regional settings now
This commit is contained in:
parent
2b2b2656b3
commit
4138f6a5a3
@ -41,7 +41,7 @@ wxZRColaUpdater::wxZRColaUpdater(wxWindow* parent) :
|
|||||||
|
|
||||||
// Prepare Updater.
|
// Prepare Updater.
|
||||||
auto app = dynamic_cast<ZRColaApp*>(wxTheApp);
|
auto app = dynamic_cast<ZRColaApp*>(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) {
|
//if (m_updater->Run() != wxTHREAD_NO_ERROR) {
|
||||||
// wxFAIL_MSG(wxT("Can't create the thread!"));
|
// wxFAIL_MSG(wxT("Can't create the thread!"));
|
||||||
// delete m_updater;
|
// delete m_updater;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user