adds/adapts translation context markers

all nescessary in folder: Cura/resources

Contributes to: issue CURA-116
This commit is contained in:
Tamara Hogenhout 2015-09-08 16:30:10 +02:00
parent 4a9bf2b4d6
commit 28aec71c02
13 changed files with 39 additions and 35 deletions

View file

@ -177,7 +177,7 @@ Item
Label
{
id: insertNameLabel
text: catalog.i18nc("@label", "Printer Name:");
text: catalog.i18nc("@label:textbox", "Printer Name:");
}
TextField
{

View file

@ -18,6 +18,7 @@ Column
anchors.fill: parent;
property variant printer_connection: UM.USBPrinterManager.connectedPrinterList.getItem(0).printer
Component.onCompleted: printer_connection.homeHead()
UM.I18nCatalog { id: catalog; name:"cura"}
Label
{
text: ""
@ -25,7 +26,7 @@ Column
}
Button
{
text: "Move to next position"
text: catalog.i18nc("@action:button","Move to next position");
onClicked:
{
if(wizardPage.leveling_state == 0)

View file

@ -46,20 +46,20 @@ Item
CheckBox
{
text: catalog.i18nc("@action:checkbox","Extruder driver ugrades")
text: catalog.i18nc("@option:check","Extruder driver ugrades")
checked: true
}
CheckBox
{
text: catalog.i18nc("@action:checkbox","Heated printer bed (kit)")
text: catalog.i18nc("@option:check","Heated printer bed (kit)")
}
CheckBox
{
text: catalog.i18nc("@action:checkbox","Heated printer bed (self built)")
text: catalog.i18nc("@option:check","Heated printer bed (self built)")
}
CheckBox
{
text: catalog.i18nc("@action:checkbox","Dual extrusion (experimental)")
text: catalog.i18nc("@option:check","Dual extrusion (experimental)")
}
}

View file

@ -20,6 +20,7 @@ Column
property int extruder_target_temp: 0
property int bed_target_temp: 0
property variant printer_connection: UM.USBPrinterManager.connectedPrinterList.rowCount() != 0 ? UM.USBPrinterManager.connectedPrinterList.getItem(0).printer: null
UM.I18nCatalog { id: catalog; name:"cura"}
Component.onCompleted:
{
@ -31,7 +32,6 @@ Column
if (printer_connection != null)
printer_connection.stopPollEndstop()
}
UM.I18nCatalog { id: catalog; name:"cura"}
Label
{
text: parent.title
@ -52,7 +52,7 @@ Column
}
Label
{
text: UM.USBPrinterManager.connectedPrinterList.count ? "Done":"Incomplete"
text: UM.USBPrinterManager.connectedPrinterList.count ? catalog.i18nc("@info:status","Done"):catalog.i18nc("@info:status","Incomplete")
}
}
Row
@ -63,7 +63,7 @@ Column
}
Label
{
text: x_min_pressed ? catalog.i18nc("@label","Works") : catalog.i18nc("@label","Not checked")
text: x_min_pressed ? catalog.i18nc("@info:status","Works") : catalog.i18nc("@info:status","Not checked")
}
}
Row
@ -74,7 +74,7 @@ Column
}
Label
{
text: y_min_pressed ? catalog.i18nc("@label","Works") : catalog.i18nc("@label","Not checked")
text: y_min_pressed ? catalog.i18nc("@info:status","Works") : catalog.i18nc("@info:status","Not checked")
}
}
@ -86,7 +86,7 @@ Column
}
Label
{
text: z_min_pressed ? catalog.i18nc("@label","Works") : catalog.i18nc("@label","Not checked")
text: z_min_pressed ? catalog.i18nc("@info:status","Works") : catalog.i18nc("@info:status","Not checked")
}
}
@ -107,7 +107,7 @@ Column
{
if(printer_connection != null)
{
heater_status_label.text = catalog.i18nc("@label","Checking")
heater_status_label.text = catalog.i18nc("@info:progress","Checking")
printer_connection.heatupNozzle(190)
wizardPage.extruder_target_temp = 190
}
@ -116,7 +116,7 @@ Column
Label
{
id: heater_status_label
text: catalog.i18nc("@label","Not checked")
text: catalog.i18nc("@info:status","Not checked")
}
}
@ -137,7 +137,7 @@ Column
{
if(printer_connection != null)
{
bed_status_label.text = catalog.i18nc("@label","Checking")
bed_status_label.text = catalog.i18nc("@info:progress","Checking")
printer_connection.printer.heatupBed(60)
wizardPage.bed_target_temp = 60
}
@ -146,7 +146,7 @@ Column
Label
{
id: bed_status_label
text: catalog.i18nc("@label","Not checked")
text: catalog.i18nc("@info:status","Not checked")
}
}
@ -175,7 +175,7 @@ Column
{
if(printer_connection != null)
{
heater_status_label.text = catalog.i18nc("@label","Works")
heater_status_label.text = catalog.i18nc("@info:status","Works")
printer_connection.heatupNozzle(0)
}
}
@ -184,7 +184,7 @@ Column
{
if(printer_connection.bedTemperature > wizardPage.bed_target_temp - 5 && printer_connection.bedTemperature < wizardPage.bed_target_temp + 5)
{
bed_status_label.text = catalog.i18nc("@label","Works")
bed_status_label.text = catalog.i18nc("@info:status","Works")
printer_connection.heatupBed(0)
}
}

View file

@ -13,6 +13,7 @@ Column
id: wizardPage
property string title
anchors.fill: parent;
UM.I18nCatalog { id: catalog; name:"cura"}
Label
{
text: parent.title
@ -38,12 +39,13 @@ Column
}
Button
{
text: "Update";
text: catalog.i18nc("@action:button","Update")
onClicked:
{
if(!UM.USBPrinterManager.updateFirmwareBySerial(text_area.text))
{
status_text.text = "ERROR"
status_text.text = catalog.i18nc("@info:status","ERROR")
}
}
}