mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 12:55:54 +08:00
CL-228 CL-229 more detailed printer status labels
This commit is contained in:
parent
5a3e427450
commit
6d861c8a33
@ -266,7 +266,20 @@ Rectangle
|
||||
return "";
|
||||
}
|
||||
}
|
||||
return catalog.i18nc("@label:status", "Available");
|
||||
switch (printer.status)
|
||||
{
|
||||
case "pre_print":
|
||||
return catalog.i18nc("@label", "Preparing to print")
|
||||
case "printing":
|
||||
return catalog.i18nc("@label:status", "Printing");
|
||||
case "idle":
|
||||
return catalog.i18nc("@label:status", "Available");
|
||||
case "unreachable": // TODO: new string
|
||||
case "maintenance": // TODO: new string
|
||||
case "unknown":
|
||||
default:
|
||||
return catalog.i18nc("@label", "Unknown");
|
||||
}
|
||||
}
|
||||
|
||||
elide: Text.ElideRight
|
||||
|
Loading…
x
Reference in New Issue
Block a user