mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-28 09:07:52 +08:00
Hot fit for last commit : use "en" language marker, when "translation_language" wasn't saved to the AppConfig
This commit is contained in:
parent
b2700a8ac6
commit
a87ec980a7
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user