Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2019-07-29 18:55:50 +0300
committerbubnikv <bubnikv@gmail.com>2019-07-29 18:55:50 +0300
commit3d9df02f5f02d77646b298bfcc34daeebceb01a6 (patch)
tree0703a4716b0eb5000555f60ee43f5e3b9a7ff8cf /src/slic3r/GUI/GUI_App.hpp
parent3b21c64c2e0d30c8725a4100475008f1c62743e7 (diff)
When accessing the localized web pages provided by Prusa Research,
only those language codes are now passed to the Prusa Research web server, which are currently supported. For example, there is no web page for "en_UK", the "en_UK" code will be translated to "en_US".
Diffstat (limited to 'src/slic3r/GUI/GUI_App.hpp')
-rw-r--r--src/slic3r/GUI/GUI_App.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/slic3r/GUI/GUI_App.hpp b/src/slic3r/GUI/GUI_App.hpp
index 8d0bcfe2f..5c897a701 100644
--- a/src/slic3r/GUI/GUI_App.hpp
+++ b/src/slic3r/GUI/GUI_App.hpp
@@ -143,7 +143,9 @@ public:
bool checked_tab(Tab* tab);
void load_current_presets();
- wxString current_language_code() { return m_wxLocale != nullptr ? m_wxLocale->GetCanonicalName() : wxString("en_US"); }
+ wxString current_language_code() const { return m_wxLocale != nullptr ? m_wxLocale->GetCanonicalName() : wxString("en_US"); }
+ // Translate the language code to a code, for which Prusa Research maintains translations. Defaults to "en_US".
+ wxString current_language_code_safe() const;
virtual bool OnExceptionInMainLoop();