FIX: Link Chinese wiki in Chinese environment

jira: STUDIO-10795
Change-Id: I50454a0e4e3f4b6ab8a1d2be8f2dbc4343c6a3e6
(cherry picked from commit a25e7198eec188bf5262f262ca6a100ad56293d4)
This commit is contained in:
zhimin.zeng
2025-03-12 09:38:47 +08:00
committed by Noisyfox
parent a9eb20fc68
commit 9738be3e58
2 changed files with 15 additions and 6 deletions

View File

@@ -297,7 +297,11 @@ void AMSMaterialsSetting::create_panel_kn(wxWindow* parent)
m_ratio_text->Bind(wxEVT_LEAVE_WINDOW, [this](auto& e) {SetCursor(wxCURSOR_ARROW); });
m_ratio_text->Bind(wxEVT_LEFT_DOWN, [this](auto& e) {
wxLaunchDefaultBrowser(wxT("https://wiki.bambulab.com/en/software/bambu-studio/calibration_pa"));
std::string language = wxGetApp().app_config->get("language");
wxString region = "en";
if (language.find("zh") == 0)
region = "zh";
wxLaunchDefaultBrowser(wxString::Format("https://wiki.bambulab.com/%s/software/bambu-studio/calibration_pa", region));
});