From e1a8bec636cf2da71c8fa4cace03d38799bac4a2 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Fri, 30 Oct 2020 12:53:36 +0100 Subject: [PATCH] Hot fit for last commit : use "en" language marker, when "translation_language" wasn't saved to the AppConfig --- src/slic3r/GUI/OG_CustomCtrl.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/OG_CustomCtrl.cpp b/src/slic3r/GUI/OG_CustomCtrl.cpp index 05a7714d94b..145d97189bf 100644 --- a/src/slic3r/GUI/OG_CustomCtrl.cpp +++ b/src/slic3r/GUI/OG_CustomCtrl.cpp @@ -32,10 +32,9 @@ static wxString get_url(const wxString& path_end, bool get_default = false) return wxEmptyString; wxString language = wxGetApp().app_config->get("translation_language"); - if (language.IsEmpty()) - return wxEmptyString; + wxString lang_marker = language.IsEmpty() ? "en" : language.BeforeFirst('_'); - return wxString("https://help.prusa3d.com/") + language.BeforeFirst('_') + "/article/" + path_end; + return wxString("https://help.prusa3d.com/") + lang_marker + "/article/" + path_end; } OG_CustomCtrl::OG_CustomCtrl( wxWindow* parent,