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".
This commit is contained in:
bubnikv 2019-07-29 17:55:50 +02:00
parent 3b21c64c2e
commit 3d9df02f5f
3 changed files with 33 additions and 4 deletions

View file

@ -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();