Reverted a change specific to Win32 to try to set Win32 locale
for the decimal point. This only works for the current user's locale and it changes it system wide.
This commit is contained in:
parent
8e001972a9
commit
d409abf4c6
1 changed files with 3 additions and 7 deletions
|
@ -461,10 +461,8 @@ bool GUI_App::select_language( wxArrayString & names,
|
||||||
m_wxLocale->Init(identifiers[index]);
|
m_wxLocale->Init(identifiers[index]);
|
||||||
m_wxLocale->AddCatalogLookupPathPrefix(wxString::FromUTF8(localization_dir()));
|
m_wxLocale->AddCatalogLookupPathPrefix(wxString::FromUTF8(localization_dir()));
|
||||||
m_wxLocale->AddCatalog(/*GetAppName()*/"Slic3rPE");
|
m_wxLocale->AddCatalog(/*GetAppName()*/"Slic3rPE");
|
||||||
wxSetlocale(LC_NUMERIC, "C");
|
//FIXME This is a temporary workaround, the correct solution is to switch to "C" locale during file import / export only.
|
||||||
#ifdef WIN32
|
wxSetlocale(LC_NUMERIC, "C");
|
||||||
::SetLocaleInfoA(LOCALE_CUSTOM_DEFAULT, LOCALE_SDECIMAL, ".");
|
|
||||||
#endif /* WIN32 */
|
|
||||||
Preset::update_suffix_modified();
|
Preset::update_suffix_modified();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -491,10 +489,8 @@ bool GUI_App::load_language()
|
||||||
m_wxLocale->Init(identifiers[i]);
|
m_wxLocale->Init(identifiers[i]);
|
||||||
m_wxLocale->AddCatalogLookupPathPrefix(wxString::FromUTF8(localization_dir()));
|
m_wxLocale->AddCatalogLookupPathPrefix(wxString::FromUTF8(localization_dir()));
|
||||||
m_wxLocale->AddCatalog(/*GetAppName()*/"Slic3rPE");
|
m_wxLocale->AddCatalog(/*GetAppName()*/"Slic3rPE");
|
||||||
|
//FIXME This is a temporary workaround, the correct solution is to switch to "C" locale during file import / export only.
|
||||||
wxSetlocale(LC_NUMERIC, "C");
|
wxSetlocale(LC_NUMERIC, "C");
|
||||||
#ifdef WIN32
|
|
||||||
::SetLocaleInfoA(LOCALE_CUSTOM_DEFAULT, LOCALE_SDECIMAL, ".");
|
|
||||||
#endif /* WIN32 */
|
|
||||||
Preset::update_suffix_modified();
|
Preset::update_suffix_modified();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue