ENH: change the parameter link to Chinese in Chinese environment
Jira: XXXX Change-Id: I97941dc8d0fe1c2544c3000d9e571d5ce2f88862
This commit is contained in:
parent
5c8888541c
commit
a5a944aae4
|
@ -1270,7 +1270,11 @@ wxString OptionsGroup::get_url(const std::string& path_end)
|
||||||
anchor.Replace(L" ", "-");
|
anchor.Replace(L" ", "-");
|
||||||
str = str.Left(pos) + anchor;
|
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)
|
bool OptionsGroup::launch_browser(const std::string& path_end)
|
||||||
|
|
Loading…
Reference in New Issue