ENH: add zh-cn version slice vedio

jira: NONE

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Ie96e0b1503138de9e2910e20d07ca3976dacfdf5
This commit is contained in:
xun.zhang 2025-02-13 10:06:53 +08:00 committed by lane.wei
parent 4d934184e3
commit 3d5fb11527
3 changed files with 6 additions and 1 deletions

Binary file not shown.

View File

@ -150,7 +150,12 @@ FilamentGroupPopup::FilamentGroupPopup(wxWindow *parent) : PopupWindow(parent, w
video_link->SetCursor(wxCursor(wxCURSOR_HAND));
video_link->Bind(wxEVT_LEFT_DOWN, [](wxMouseEvent &)
{
fs::path video_path = fs::path(resources_dir()) / "videos/dual_extruder_slicing.mp4";
bool is_zh = wxGetApp().app_config->get("language") == "zh_CN";
fs::path video_path;
if (is_zh)
video_path = fs::path(resources_dir()) / "videos/dual_extruder_slicing_zh.mp4";
else
video_path = fs::path(resources_dir()) / "videos/dual_extruder_slicing_en.mp4";
wxString video_path_str = wxString::FromUTF8(video_path.string());
if (wxFileExists(video_path_str)) {