FIX: add cali translate

Jira: XXXX
Change-Id: I39bb2be58bea7c3fc631f20464ffcebc3ecde171
This commit is contained in:
zhimin.zeng 2023-09-25 17:43:32 +08:00 committed by Lane.Wei
parent 9639f77bab
commit 2e2fe7506c
24 changed files with 198 additions and 36 deletions

View file

@ -4101,7 +4101,16 @@ int MachineObject::parse_json(std::string payload)
GUI::wxGetApp().CallAfter([cali_mode, reason] {
wxString info = "";
if (reason == "invalid nozzle_diameter") {
info = _L("Invalid nozzle diameter");
info = _L("This calibration does not support the currently selected nozzle diameter");
}
else if (reason == "invalid handle_flowrate_cali param") {
info = _L("Current flowrate cali param is invalid");
}
else if (reason == "nozzle_diameter is not matched") {
info = _L("Selected diameter and machine diameter do not match");
}
else if (reason == "generate auto filament cali gcode failure") {
info = _L("Failed to generate cali gcode");
}
else {
info = reason;