mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
FIX: use current_language_code_safe() for valid language
Change-Id: I480730055588aa76bd40f35e6c4bcbe9833c330d
This commit is contained in:
parent
74a1bb8c0f
commit
c5bba1fa85
6 changed files with 9 additions and 24 deletions
|
@ -171,8 +171,8 @@ wxString GuideFrame::SetStartPage(GuidePage startpage, bool load)
|
|||
TargetUrl = from_u8((boost::filesystem::path(resources_dir()) / "web/guide/21/index.html").make_preferred().string());
|
||||
}
|
||||
|
||||
std::string strlang = wxGetApp().app_config->get("language");
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__<< boost::format(", strlang=%1%")%strlang;
|
||||
wxString strlang = wxGetApp().current_language_code_safe();
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__<< boost::format(", strlang=%1%") % into_u8(strlang);
|
||||
if (strlang != "")
|
||||
TargetUrl = wxString::Format("%s?lang=%s", w2s(TargetUrl), strlang);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue