FIX: translate for cali

Jira: 4141 4260
Change-Id: I2a426421985c74217d547329b935c8986e75fbe5
This commit is contained in:
zhimin.zeng 2023-09-11 16:46:37 +08:00 committed by Lane.Wei
parent 3347ce92df
commit 9757ec5fc3
27 changed files with 1439 additions and 737 deletions

View file

@ -4098,7 +4098,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;