ENH: change the parameter link to Chinese in Chinese environment

Jira: XXXX

Change-Id: I97941dc8d0fe1c2544c3000d9e571d5ce2f88862
This commit is contained in:
maosheng.wei 2024-03-22 10:22:17 +08:00 committed by Lane.Wei
parent 5c8888541c
commit a5a944aae4
1 changed files with 5 additions and 1 deletions

View File

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