mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-23 05:05:24 +00:00
ENH:Add translation for on/off/auto
jira:[STUDIO-13113] Change-Id: I6b7ec64c13c664b0a2ea01ccf29dd147a2f75f32 (cherry picked from commit c90e991f1f67a3047585532159c3ae0e74f986b5)
This commit is contained in:
@@ -90,12 +90,21 @@ SelectMachineDialog::SelectMachineDialog(Plater *plater)
|
|||||||
#endif //__WINDOWS__
|
#endif //__WINDOWS__
|
||||||
|
|
||||||
|
|
||||||
|
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", _L("On")});
|
||||||
|
ops_no_auto.push_back(POItem{"off", _L("Off")});
|
||||||
|
} else {
|
||||||
ops_auto.push_back(POItem{"auto", "Auto"});
|
ops_auto.push_back(POItem{"auto", "Auto"});
|
||||||
ops_auto.push_back(POItem{"on", "On"});
|
ops_auto.push_back(POItem{"on", "On"});
|
||||||
ops_auto.push_back(POItem{"off", "Off"});
|
ops_auto.push_back(POItem{"off", "Off"});
|
||||||
|
|
||||||
ops_no_auto.push_back(POItem{"on", "On"});
|
ops_no_auto.push_back(POItem{"on", "On"});
|
||||||
ops_no_auto.push_back(POItem{"off", "Off"});
|
ops_no_auto.push_back(POItem{"off", "Off"});
|
||||||
|
}
|
||||||
|
|
||||||
// bind
|
// bind
|
||||||
Bind(wxEVT_CLOSE_WINDOW, &SelectMachineDialog::on_cancel, this);
|
Bind(wxEVT_CLOSE_WINDOW, &SelectMachineDialog::on_cancel, this);
|
||||||
|
|||||||
Reference in New Issue
Block a user