mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-19 04:37:52 -06:00
Fixed OSX build & language selection (SPE-696)
This commit is contained in:
parent
5553d10c1e
commit
918cb48d45
2 changed files with 5 additions and 4 deletions
|
@ -434,7 +434,7 @@ bool GUI_App::select_language( wxArrayString & names,
|
||||||
m_wxLocale = new wxLocale;
|
m_wxLocale = new wxLocale;
|
||||||
m_wxLocale->Init(identifiers[index]);
|
m_wxLocale->Init(identifiers[index]);
|
||||||
m_wxLocale->AddCatalogLookupPathPrefix(localization_dir());
|
m_wxLocale->AddCatalogLookupPathPrefix(localization_dir());
|
||||||
m_wxLocale->AddCatalog(GetAppName());
|
m_wxLocale->AddCatalog(/*GetAppName()*/"Slic3rPE");
|
||||||
wxSetlocale(LC_NUMERIC, "C");
|
wxSetlocale(LC_NUMERIC, "C");
|
||||||
Preset::update_suffix_modified();
|
Preset::update_suffix_modified();
|
||||||
return true;
|
return true;
|
||||||
|
@ -461,7 +461,7 @@ bool GUI_App::load_language()
|
||||||
m_wxLocale = new wxLocale;
|
m_wxLocale = new wxLocale;
|
||||||
m_wxLocale->Init(identifiers[i]);
|
m_wxLocale->Init(identifiers[i]);
|
||||||
m_wxLocale->AddCatalogLookupPathPrefix(localization_dir());
|
m_wxLocale->AddCatalogLookupPathPrefix(localization_dir());
|
||||||
m_wxLocale->AddCatalog(GetAppName());
|
m_wxLocale->AddCatalog(/*GetAppName()*/"Slic3rPE");
|
||||||
wxSetlocale(LC_NUMERIC, "C");
|
wxSetlocale(LC_NUMERIC, "C");
|
||||||
Preset::update_suffix_modified();
|
Preset::update_suffix_modified();
|
||||||
return true;
|
return true;
|
||||||
|
@ -504,7 +504,8 @@ void GUI_App::get_installed_languages(wxArrayString & names, wxArrayLong & ident
|
||||||
{
|
{
|
||||||
auto full_file_name = dir.GetName() + wxFileName::GetPathSeparator() +
|
auto full_file_name = dir.GetName() + wxFileName::GetPathSeparator() +
|
||||||
filename + wxFileName::GetPathSeparator() +
|
filename + wxFileName::GetPathSeparator() +
|
||||||
GetAppName() + wxT(".mo");
|
/*GetAppName()*/"Slic3rPE" +
|
||||||
|
wxT(".mo");
|
||||||
if (wxFileExists(full_file_name))
|
if (wxFileExists(full_file_name))
|
||||||
{
|
{
|
||||||
names.Add(langinfo->Description);
|
names.Add(langinfo->Description);
|
||||||
|
|
|
@ -23,7 +23,7 @@ KBShortcutsDialog::KBShortcutsDialog()
|
||||||
|
|
||||||
wxFont font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
|
wxFont font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
|
||||||
font.SetPointSize(10);
|
font.SetPointSize(10);
|
||||||
const wxFont bold_font = font.Bold();
|
wxFont bold_font = font.Bold();
|
||||||
#ifdef __WXOSX__
|
#ifdef __WXOSX__
|
||||||
font.SetPointSize(12);
|
font.SetPointSize(12);
|
||||||
bold_font.SetPointSize(14);
|
bold_font.SetPointSize(14);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue