ENH:Add translation for on/off/auto

jira:[STUDIO-13113]

Change-Id: I6b7ec64c13c664b0a2ea01ccf29dd147a2f75f32
(cherry picked from commit c90e991f1f67a3047585532159c3ae0e74f986b5)
This commit is contained in:
milk
2025-07-07 15:07:40 +08:00
committed by Noisyfox
parent 3697abe3a9
commit 09c5768484

View File

@@ -90,12 +90,21 @@ SelectMachineDialog::SelectMachineDialog(Plater *plater)
#endif //__WINDOWS__
ops_auto.push_back(POItem{"auto", "Auto"});
ops_auto.push_back(POItem{"on", "On"});
ops_auto.push_back(POItem{"off", "Off"});
if (wxGetApp().app_config->get("language") == "zh_CN") {
ops_auto.push_back(POItem{"auto", _L("Auto")});
ops_auto.push_back(POItem{"on", _L("On")});
ops_auto.push_back(POItem{"off", _L("Off")});
ops_no_auto.push_back(POItem{"on", "On"});
ops_no_auto.push_back(POItem{"off", "Off"});
ops_no_auto.push_back(POItem{"on", _L("On")});
ops_no_auto.push_back(POItem{"off", _L("Off")});
} else {
ops_auto.push_back(POItem{"auto", "Auto"});
ops_auto.push_back(POItem{"on", "On"});
ops_auto.push_back(POItem{"off", "Off"});
ops_no_auto.push_back(POItem{"on", "On"});
ops_no_auto.push_back(POItem{"off", "Off"});
}
// bind
Bind(wxEVT_CLOSE_WINDOW, &SelectMachineDialog::on_cancel, this);