Skip to content

Commit

Permalink
Fix for wxWidgets 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
RealDeuce committed Aug 8, 2023
1 parent 2af3318 commit 60089de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/slic3r/GUI/GUI_App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2289,6 +2289,7 @@ bool GUI_App::load_language(wxString language, bool initial)
{
// Allocating a temporary locale will switch the default wxTranslations to its internal wxTranslations instance.
wxLocale temp_locale;
temp_locale.Init();
// Set the current translation's language to default, otherwise GetBestTranslation() may not work (see the wxWidgets source code).
wxTranslations::Get()->SetLanguage(wxLANGUAGE_DEFAULT);
// Let the wxFileTranslationsLoader enumerate all translation dictionaries for PrusaSlicer
Expand Down

0 comments on commit 60089de

Please sign in to comment.