CURA-4902 Challenging network message fix

This bug was very complicated to fix and involved careful troubleshooting of networked printers and eventual application of text-based message parsing and case switching. Should work now though.
This commit is contained in:
Ian Paschal 2018-03-21 10:48:03 +01:00
parent 7f6a89e6aa
commit db316708d6

View file

@ -41,7 +41,8 @@ Rectangle
return catalog.i18nc("@label:status", "Available"); return catalog.i18nc("@label:status", "Available");
case "unreachable": case "unreachable":
return catalog.i18nc("@label:MonitorStatus", "Lost connection with the printer"); return catalog.i18nc("@label:MonitorStatus", "Lost connection with the printer");
case "maintenance": // TODO: new string case "maintenance":
return catalog.i18nc("@label:status", "Unavailable");
case "unknown": case "unknown":
default: default:
return catalog.i18nc("@label Printer status", "Unknown"); return catalog.i18nc("@label Printer status", "Unknown");