From 5fd2e573a0c4469e4874395528a7c3fa811bdbfc Mon Sep 17 00:00:00 2001 From: Vojtech Kral Date: Wed, 17 Apr 2019 14:56:44 +0200 Subject: [PATCH] GUI_App: Add a language code getter --- src/slic3r/GUI/GUI_App.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slic3r/GUI/GUI_App.hpp b/src/slic3r/GUI/GUI_App.hpp index 41805702b..3537f98e4 100644 --- a/src/slic3r/GUI/GUI_App.hpp +++ b/src/slic3r/GUI/GUI_App.hpp @@ -139,6 +139,8 @@ public: bool checked_tab(Tab* tab); void load_current_presets(); + wxString current_language_code() { return m_wxLocale != nullptr ? m_wxLocale->GetCanonicalName() : wxString("en_US"); } + virtual bool OnExceptionInMainLoop(); #ifdef __APPLE__