Added translations for the strings

CL-894
This commit is contained in:
Jaime van Kessel 2018-08-17 13:41:23 +02:00
parent eb7d42a7f8
commit b074d2bdf3

View File

@ -15,6 +15,12 @@ Item
return OutputDevice.formatDuration(time) return OutputDevice.formatDuration(time)
} }
UM.I18nCatalog
{
id: catalog
name: "cura"
}
Rectangle Rectangle
{ {
id: background id: background
@ -88,11 +94,11 @@ Item
{ {
if(printJob.assignedPrinter == null) if(printJob.assignedPrinter == null)
{ {
return "Waiting for: first available" return catalog.i18nc("@label", "Waiting for: first available")
} }
else else
{ {
return "Waiting for: " + printJob.assignedPrinter.name return catalog.i18nc("@label", "Waiting for: ") + printJob.assignedPrinter.name
} }
} }
@ -146,7 +152,7 @@ Item
Button Button
{ {
id: sendToTopButton id: sendToTopButton
text: "Send to top" text: catalog.i18nc("@label", "Move to top")
onClicked: OutputDevice.sendJobToTop(printJob.key) onClicked: OutputDevice.sendJobToTop(printJob.key)
width: parent.width width: parent.width
enabled: OutputDevice.printJobs[0].key != printJob.key enabled: OutputDevice.printJobs[0].key != printJob.key
@ -154,7 +160,7 @@ Item
Button Button
{ {
id: deleteButton id: deleteButton
text: "Delete" text: catalog.i18nc("@label", "Delete")
onClicked: OutputDevice.deleteJobFromQueue(printJob.key) onClicked: OutputDevice.deleteJobFromQueue(printJob.key)
width: parent.width width: parent.width
anchors.top: sendToTopButton.bottom anchors.top: sendToTopButton.bottom