Skip to content

Commit

Permalink
ENH: change the parameter link to Chinese in Chinese environment
Browse files Browse the repository at this point in the history
Jira: XXXX

Change-Id: I97941dc8d0fe1c2544c3000d9e571d5ce2f88862
  • Loading branch information
DanBao-Bambu authored and lanewei120 committed Mar 25, 2024
1 parent 5c88885 commit a5a944a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/slic3r/GUI/OptionsGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,11 @@ wxString OptionsGroup::get_url(const std::string& path_end)
anchor.Replace(L" ", "-");
str = str.Left(pos) + anchor;
}
return wxString::Format(L"https://wiki.bambulab.com/%s/software/bambu-studio/%s", L"en", str);
std::string language = wxGetApp().app_config->get("language");
wxString region = L"en";
if (language.find("zh") == 0)
region = L"zh";
return wxString::Format(L"https://wiki.bambulab.com/%s/software/bambu-studio/%s", region, str);
}

bool OptionsGroup::launch_browser(const std::string& path_end)
Expand Down

0 comments on commit a5a944a

Please sign in to comment.