mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06:00
CL-228 CL-229 more detailed printer status labels
This commit is contained in:
parent
5a3e427450
commit
6d861c8a33
1 changed files with 14 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue