adds/adapts translation context markers

last nesscessary changes for internationalisation -> Cura

Contributes to: issue CURA-116
This commit is contained in:
Tamara Hogenhout 2015-09-09 15:25:39 +02:00
parent 09cf161b59
commit ef93524d78
6 changed files with 7 additions and 12 deletions

View file

@ -17,7 +17,7 @@ def getMetaData():
}, },
"mesh_reader": { "mesh_reader": {
"extension": "3mf", "extension": "3mf",
"description": catalog.i18nc("@item:inlistbox", "3MF File") "description": catalog.i18nc("@item:inlistbox displays the fileformat in a list", "3MF File")
} }
} }

View file

@ -19,7 +19,7 @@ def getMetaData():
"mesh_writer": { "mesh_writer": {
"output": [{ "output": [{
"extension": "gcode", "extension": "gcode",
"description": catalog.i18nc("@item:inlistbox", "GCode File"), "description": catalog.i18nc("@item:inlistbox displays the fileformat in a list", "GCode File"),
"mime_type": "text/x-gcode", "mime_type": "text/x-gcode",
"mode": GCodeWriter.GCodeWriter.OutputMode.TextMode "mode": GCodeWriter.GCodeWriter.OutputMode.TextMode
}] }]

View file

@ -43,10 +43,6 @@ class USBPrinterManager(QObject, SignalEmitter, OutputDevicePlugin, Extension):
self._firmware_view = None self._firmware_view = None
## Add menu item to top menu of the application. ## Add menu item to top menu of the application.
#self.setMenuName(self._i18n_catalog.i18n("@title:menu", "Firmware"))
#self.addMenuItem(self._i18n_catalog.i18n("@item:inmenu", "Update Firmware"), self.updateAllFirmware)
#self.setMenuName("Firmware")
self.setMenuName(i18n_catalog.i18nc("@title:menu","Firmware")) self.setMenuName(i18n_catalog.i18nc("@title:menu","Firmware"))
self.addMenuItem(i18n_catalog.i18nc("@item:inmenu", "Update Firmware"), self.updateAllFirmware) self.addMenuItem(i18n_catalog.i18nc("@item:inmenu", "Update Firmware"), self.updateAllFirmware)

View file

@ -80,8 +80,7 @@ UM.PreferencesPage
// Because ListModel is stupid and does not allow using qsTr() for values. // Because ListModel is stupid and does not allow using qsTr() for values.
for(var i = 0; i < languageList.count; ++i) for(var i = 0; i < languageList.count; ++i)
{ {
//languageList.setProperty(i, "text", catalog.i18nc("@action:menu",languageList.get(i).text)); languageList.setProperty(i, "text", catalog.i18nc("@action:inmenu",languageList.get(i).text));
languageList.setProperty(i, "text", languageList.get(i).text);
} }
// Glorious hack time. ComboBox does not update the text properly after changing the // Glorious hack time. ComboBox does not update the text properly after changing the
@ -113,11 +112,11 @@ UM.PreferencesPage
id: pushFreeText //is a button so the user doesn't have te click inconvenientley precise to enable or disable the checkbox id: pushFreeText //is a button so the user doesn't have te click inconvenientley precise to enable or disable the checkbox
//: Display Overhang preference checkbox //: Display Overhang preference checkbox
text: catalog.i18nc("@option:check","Automatic push free"); text: catalog.i18nc("@option:check","Automatically arrange the distancing between objects");
onClicked: pushFreeCheckbox.checked = !pushFreeCheckbox.checked onClicked: pushFreeCheckbox.checked = !pushFreeCheckbox.checked
//: Display Overhang preference tooltip //: Display Overhang preference tooltip
tooltip: catalog.i18nc("@info:tooltip","Are objects on the platform automatically moved so they no longer intersect") tooltip: catalog.i18nc("@info:tooltip","Are objects on the platform automatically moved so that they no longer intersect")
style: ButtonStyle style: ButtonStyle
{ {

View file

@ -138,7 +138,7 @@ Rectangle {
anchors.leftMargin: UM.Theme.sizes.default_margin.width/2 anchors.leftMargin: UM.Theme.sizes.default_margin.width/2
font: UM.Theme.fonts.default font: UM.Theme.fonts.default
color: UM.Theme.colors.text color: UM.Theme.colors.text
text: (!base.printDuration || !base.printDuration.valid) ? "" : catalog.i18nc("@label", "%1 h:m").arg(base.printDuration.getDisplayString(UM.DurationFormat.Short)) text: (!base.printDuration || !base.printDuration.valid) ? "" : catalog.i18nc("@label h:m (hours:minutes) is added to the expected printtime (%1)", "%1 h:m").arg(base.printDuration.getDisplayString(UM.DurationFormat.Short))
} }
} }
Item{ Item{

View file

@ -126,7 +126,7 @@ Rectangle
{ {
for(var i = 0; i < modesListModel.count; ++i) for(var i = 0; i < modesListModel.count; ++i)
{ {
modesListModel.setProperty(i, "text", modesListModel.get(i).text); modesListModel.setProperty(i, "text", catalog.i18nc("@label", modesListModel.get(i).text));
} }
} }
} }