mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Add missing translation markers
This commit is contained in:
parent
ef62725cc1
commit
acf5120cff
13 changed files with 76 additions and 40 deletions
|
@ -9,27 +9,19 @@ Item
|
||||||
{
|
{
|
||||||
width: 250
|
width: 250
|
||||||
height: 250
|
height: 250
|
||||||
/*Rectangle
|
|
||||||
{
|
|
||||||
color: "blue"
|
|
||||||
width: 250
|
|
||||||
height:250
|
|
||||||
}*/
|
|
||||||
Slider
|
Slider
|
||||||
{
|
{
|
||||||
width: 10
|
width: 10
|
||||||
height: 250
|
height: 250
|
||||||
anchors.right : parent.right
|
anchors.right : parent.right
|
||||||
//anchors.fill: parent
|
|
||||||
//Layout.preferredHeight: UM.Theme.sizes.section.height;
|
|
||||||
orientation: Qt.Vertical
|
orientation: Qt.Vertical
|
||||||
minimumValue: 0;
|
minimumValue: 0;
|
||||||
maximumValue: 100;
|
maximumValue: 100;
|
||||||
|
|
||||||
value: 50;
|
value: 100;
|
||||||
onValueChanged: UM.ActiveView.triggerAction("setLayer", value)
|
onValueChanged: UM.ActiveView.triggerAction("setLayer", value)
|
||||||
|
|
||||||
style: UM.Theme.styles.slider;
|
style: UM.Theme.styles.slider;
|
||||||
//Component.onCompleted: {console.log(UM.Theme.styles.slider)}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import QtQuick 2.1
|
import QtQuick 2.1
|
||||||
import QtQuick.Controls 1.1
|
import QtQuick.Controls 1.1
|
||||||
import QtQuick.Layouts 1.1
|
import QtQuick.Layouts 1.1
|
||||||
|
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
width: 300; height: 100
|
width: 300; height: 100
|
||||||
|
@ -10,11 +11,13 @@ Rectangle
|
||||||
{
|
{
|
||||||
Text
|
Text
|
||||||
{
|
{
|
||||||
text: "extruder temperature " + manager.extruderTemperature
|
//: USB Printing dialog label, %1 is head temperature
|
||||||
|
text: qsTr("Extruder Temperature %1").arg(manager.extruderTemperature)
|
||||||
}
|
}
|
||||||
Text
|
Text
|
||||||
{
|
{
|
||||||
text: "bed temperature " + manager.bedTemperature
|
//: USB Printing dialog label, %1 is bed temperature
|
||||||
|
text: qsTr("Bed Temperature %1").arg(manager.bedTemperature)
|
||||||
}
|
}
|
||||||
Text
|
Text
|
||||||
{
|
{
|
||||||
|
@ -26,13 +29,15 @@ Rectangle
|
||||||
{
|
{
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
text: "Print"
|
//: USB Printing dialog start print button
|
||||||
|
text: qsTr("Print");
|
||||||
onClicked: { manager.startPrint() }
|
onClicked: { manager.startPrint() }
|
||||||
enabled: manager.progress == 0 ? true : false
|
enabled: manager.progress == 0 ? true : false
|
||||||
}
|
}
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
text: "Cancel"
|
//: USB Printing dialog cancel print button
|
||||||
|
text: qsTr("Cancel");
|
||||||
onClicked: { manager.cancelPrint() }
|
onClicked: { manager.cancelPrint() }
|
||||||
enabled: manager.progress == 0 ? false: true
|
enabled: manager.progress == 0 ? false: true
|
||||||
}
|
}
|
||||||
|
@ -52,4 +57,4 @@ Rectangle
|
||||||
height: 25
|
height: 25
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,22 @@ Rectangle
|
||||||
|
|
||||||
Text
|
Text
|
||||||
{
|
{
|
||||||
text: manager.progress == 0 ? "Starting firmware update, may take a while.": manager.progress > 99 ? "Firmware update completed.": "Updating firmware."
|
text: {
|
||||||
|
if (manager.progress == 0)
|
||||||
|
{
|
||||||
|
//: Firmware update status label
|
||||||
|
return qsTr("Starting firmware update, this may take a while.")
|
||||||
|
}
|
||||||
|
else if (manager.progress > 99)
|
||||||
|
{
|
||||||
|
//: Firmware update status label
|
||||||
|
return qsTr("Firmware update completed.")
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//: Firmware update status label
|
||||||
|
return qsTr("Updating firmware.")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ProgressBar
|
ProgressBar
|
||||||
{
|
{
|
||||||
|
@ -26,4 +41,4 @@ Rectangle
|
||||||
height: 25
|
height: 25
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,8 +16,7 @@ from PyQt5.QtQuick import QQuickView
|
||||||
from PyQt5.QtCore import QUrl, QObject, pyqtSlot, pyqtProperty, pyqtSignal
|
from PyQt5.QtCore import QUrl, QObject, pyqtSlot, pyqtProperty, pyqtSignal
|
||||||
|
|
||||||
from UM.i18n import i18nCatalog
|
from UM.i18n import i18nCatalog
|
||||||
|
i18n_catalog = i18nCatalog("uranium")
|
||||||
i18n_catalog = i18nCatalog("plugins")
|
|
||||||
|
|
||||||
|
|
||||||
class USBPrinterManager(QObject, SignalEmitter, Extension):
|
class USBPrinterManager(QObject, SignalEmitter, Extension):
|
||||||
|
@ -38,7 +37,7 @@ class USBPrinterManager(QObject, SignalEmitter, Extension):
|
||||||
self._error_message = ""
|
self._error_message = ""
|
||||||
|
|
||||||
## Add menu item to top menu of the application.
|
## Add menu item to top menu of the application.
|
||||||
self.addMenuItem(i18n_catalog.i18n("Update firmware"), self.updateAllFirmware)
|
self.addMenuItem(i18n_catalog.i18n("Update Firmware"), self.updateAllFirmware)
|
||||||
|
|
||||||
pyqtError = pyqtSignal(str, arguments = ["amount"])
|
pyqtError = pyqtSignal(str, arguments = ["amount"])
|
||||||
processingProgress = pyqtSignal(float, arguments = ["amount"])
|
processingProgress = pyqtSignal(float, arguments = ["amount"])
|
||||||
|
|
|
@ -33,15 +33,17 @@ UM.Dialog {
|
||||||
Label {
|
Label {
|
||||||
Layout.alignment: Qt.AlignHCenter;
|
Layout.alignment: Qt.AlignHCenter;
|
||||||
|
|
||||||
text: "Cura 15.06";
|
text: "Cura 15.06 Beta";
|
||||||
font: UM.Theme.fonts.large;
|
font: UM.Theme.fonts.large;
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
|
//: About dialog application description
|
||||||
text: qsTr("End-to-end solution for fused filament 3D printing.")
|
text: qsTr("End-to-end solution for fused filament 3D printing.")
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
|
//: About dialog application author note
|
||||||
text: qsTr("Cura has been developed by Ultimaker B.V. in cooperation with the community.")
|
text: qsTr("Cura has been developed by Ultimaker B.V. in cooperation with the community.")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ Item {
|
||||||
Action {
|
Action {
|
||||||
id: undoAction;
|
id: undoAction;
|
||||||
//: Undo action
|
//: Undo action
|
||||||
text: qsTr("Undo");
|
text: qsTr("&Undo");
|
||||||
iconName: "edit-undo";
|
iconName: "edit-undo";
|
||||||
shortcut: StandardKey.Undo;
|
shortcut: StandardKey.Undo;
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ Item {
|
||||||
Action {
|
Action {
|
||||||
id: redoAction;
|
id: redoAction;
|
||||||
//: Redo action
|
//: Redo action
|
||||||
text: qsTr("Redo");
|
text: qsTr("&Redo");
|
||||||
iconName: "edit-redo";
|
iconName: "edit-redo";
|
||||||
shortcut: StandardKey.Redo;
|
shortcut: StandardKey.Redo;
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ Item {
|
||||||
Action {
|
Action {
|
||||||
id: quitAction;
|
id: quitAction;
|
||||||
//: Quit action
|
//: Quit action
|
||||||
text: qsTr("Quit");
|
text: qsTr("&Quit");
|
||||||
iconName: "application-exit";
|
iconName: "application-exit";
|
||||||
shortcut: StandardKey.Quit;
|
shortcut: StandardKey.Quit;
|
||||||
}
|
}
|
||||||
|
@ -58,27 +58,27 @@ Item {
|
||||||
Action {
|
Action {
|
||||||
id: preferencesAction;
|
id: preferencesAction;
|
||||||
//: Preferences action
|
//: Preferences action
|
||||||
text: qsTr("Preferences");
|
text: qsTr("&Preferences...");
|
||||||
iconName: "configure";
|
iconName: "configure";
|
||||||
}
|
}
|
||||||
|
|
||||||
Action {
|
Action {
|
||||||
id: addMachineAction;
|
id: addMachineAction;
|
||||||
//: Add a Machine action
|
//: Add Printer action
|
||||||
text: qsTr("Add Printer...");
|
text: qsTr("&Add Printer...");
|
||||||
}
|
}
|
||||||
|
|
||||||
Action {
|
Action {
|
||||||
id: settingsAction;
|
id: settingsAction;
|
||||||
//: Manage Printers action
|
//: Configure Printers action
|
||||||
text: qsTr("Configure Printers");
|
text: qsTr("&Configure Printers");
|
||||||
iconName: "configure";
|
iconName: "configure";
|
||||||
}
|
}
|
||||||
|
|
||||||
Action {
|
Action {
|
||||||
id: documentationAction;
|
id: documentationAction;
|
||||||
//: Show Online Documentation action
|
//: Show Online Documentation action
|
||||||
text: qsTr("Show Online Documentation");
|
text: qsTr("Show Online &Documentation");
|
||||||
iconName: "help-contents";
|
iconName: "help-contents";
|
||||||
shortcut: StandardKey.Help;
|
shortcut: StandardKey.Help;
|
||||||
}
|
}
|
||||||
|
@ -86,14 +86,14 @@ Item {
|
||||||
Action {
|
Action {
|
||||||
id: reportBugAction;
|
id: reportBugAction;
|
||||||
//: Report a Bug Action
|
//: Report a Bug Action
|
||||||
text: qsTr("Report a Bug");
|
text: qsTr("Report a &Bug");
|
||||||
iconName: "tools-report-bug";
|
iconName: "tools-report-bug";
|
||||||
}
|
}
|
||||||
|
|
||||||
Action {
|
Action {
|
||||||
id: aboutAction;
|
id: aboutAction;
|
||||||
//: About action
|
//: About action
|
||||||
text: qsTr("About...");
|
text: qsTr("&About...");
|
||||||
iconName: "help-about";
|
iconName: "help-about";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ Item {
|
||||||
Action {
|
Action {
|
||||||
id: openAction;
|
id: openAction;
|
||||||
//: Open file action
|
//: Open file action
|
||||||
text: qsTr("Open...");
|
text: qsTr("&Open...");
|
||||||
iconName: "document-open";
|
iconName: "document-open";
|
||||||
shortcut: StandardKey.Open;
|
shortcut: StandardKey.Open;
|
||||||
}
|
}
|
||||||
|
@ -167,7 +167,7 @@ Item {
|
||||||
Action {
|
Action {
|
||||||
id: saveAction;
|
id: saveAction;
|
||||||
//: Save file action
|
//: Save file action
|
||||||
text: qsTr("Save...");
|
text: qsTr("&Save...");
|
||||||
iconName: "document-save";
|
iconName: "document-save";
|
||||||
shortcut: StandardKey.Save;
|
shortcut: StandardKey.Save;
|
||||||
}
|
}
|
||||||
|
@ -175,7 +175,7 @@ Item {
|
||||||
Action {
|
Action {
|
||||||
id: showEngineLogAction;
|
id: showEngineLogAction;
|
||||||
//: Show engine log action
|
//: Show engine log action
|
||||||
text: qsTr("Show engine log...");
|
text: qsTr("Show engine &log...");
|
||||||
iconName: "view-list-text";
|
iconName: "view-list-text";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,11 +15,13 @@ UM.Dialog {
|
||||||
anchors.fill: parent;
|
anchors.fill: parent;
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
|
//: Add Printer wizard page title
|
||||||
text: qsTr("Add Printer");
|
text: qsTr("Add Printer");
|
||||||
font.pointSize: 18;
|
font.pointSize: 18;
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
|
//: Add Printer wizard page description
|
||||||
text: qsTr("Please select the type of printer:");
|
text: qsTr("Please select the type of printer:");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,6 +36,7 @@ UM.Dialog {
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
|
//: Add Printer wizard field label
|
||||||
text: qsTr("Printer Name:");
|
text: qsTr("Printer Name:");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,6 +49,7 @@ UM.Dialog {
|
||||||
|
|
||||||
rightButtons: [
|
rightButtons: [
|
||||||
Button {
|
Button {
|
||||||
|
//: Add Printer wizarad button
|
||||||
text: qsTr("Next");
|
text: qsTr("Next");
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if(machineList.currentIndex != -1) {
|
if(machineList.currentIndex != -1) {
|
||||||
|
@ -55,6 +59,7 @@ UM.Dialog {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Button {
|
Button {
|
||||||
|
//: Add Printer wizarad button
|
||||||
text: qsTr("Cancel");
|
text: qsTr("Cancel");
|
||||||
onClicked: base.visible = false;
|
onClicked: base.visible = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,9 +10,7 @@ UM.MainWindow {
|
||||||
id: base
|
id: base
|
||||||
visible: true
|
visible: true
|
||||||
|
|
||||||
//width: 1280
|
//: Cura application window title
|
||||||
//height: 720
|
|
||||||
|
|
||||||
title: qsTr("Cura");
|
title: qsTr("Cura");
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
@ -271,6 +269,7 @@ UM.MainWindow {
|
||||||
id: preferences
|
id: preferences
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
|
//: View preferences page title
|
||||||
insertPage(1, qsTr("View"), "view-preview", Qt.resolvedUrl("./ViewPage.qml"));
|
insertPage(1, qsTr("View"), "view-preview", Qt.resolvedUrl("./ViewPage.qml"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -322,7 +321,7 @@ UM.MainWindow {
|
||||||
configureMachines.onTriggered: { preferences.visible = true; preferences.setPage(2); }
|
configureMachines.onTriggered: { preferences.visible = true; preferences.setPage(2); }
|
||||||
|
|
||||||
documentation.onTriggered: Qt.openUrlExternally("https://ultimaker.com/en/support");
|
documentation.onTriggered: Qt.openUrlExternally("https://ultimaker.com/en/support");
|
||||||
reportBug.onTriggered: Qt.openUrlExternally("https://github.com/Ultimaker/PluggableCura/issues");
|
reportBug.onTriggered: Qt.openUrlExternally("https://github.com/Ultimaker/Cura/issues");
|
||||||
showEngineLog.onTriggered: engineLog.visible = true;
|
showEngineLog.onTriggered: engineLog.visible = true;
|
||||||
about.onTriggered: aboutDialog.visible = true;
|
about.onTriggered: aboutDialog.visible = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,7 @@ UM.Dialog {
|
||||||
}
|
}
|
||||||
|
|
||||||
rightButtons: Button {
|
rightButtons: Button {
|
||||||
|
//: Close engine log button
|
||||||
text: qsTr("Close");
|
text: qsTr("Close");
|
||||||
onClicked: dialog.visible = false;
|
onClicked: dialog.visible = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -145,6 +145,7 @@ Button {
|
||||||
color: UM.Theme.colors.save_button_text;
|
color: UM.Theme.colors.save_button_text;
|
||||||
font: UM.Theme.fonts.default;
|
font: UM.Theme.fonts.default;
|
||||||
|
|
||||||
|
//: Print material amount save button label
|
||||||
text: control.printMaterialAmount < 0 ? "" : qsTr("%1m material").arg(control.printMaterialAmount);
|
text: control.printMaterialAmount < 0 ? "" : qsTr("%1m material").arg(control.printMaterialAmount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -186,10 +187,13 @@ Button {
|
||||||
|
|
||||||
text: {
|
text: {
|
||||||
if(base.progress < 0) {
|
if(base.progress < 0) {
|
||||||
|
//: Save button label
|
||||||
return qsTr("Please load a 3D model");
|
return qsTr("Please load a 3D model");
|
||||||
} else if (base.progress < 0.95) {
|
} else if (base.progress < 0.95) {
|
||||||
|
//: Save button label
|
||||||
return qsTr("Calculating Print-time");
|
return qsTr("Calculating Print-time");
|
||||||
} else {
|
} else {
|
||||||
|
//: Save button label
|
||||||
return qsTr("Estimated Print-time");
|
return qsTr("Estimated Print-time");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -101,7 +101,9 @@ UM.AngledCornerRectangle {
|
||||||
|
|
||||||
ListModel {
|
ListModel {
|
||||||
id: modesListModel;
|
id: modesListModel;
|
||||||
|
//: Simple configuration mode option
|
||||||
ListElement { text: QT_TR_NOOP("Simple"); file: "SidebarSimple.qml" }
|
ListElement { text: QT_TR_NOOP("Simple"); file: "SidebarSimple.qml" }
|
||||||
|
//: Advanced configuration mode option
|
||||||
ListElement { text: QT_TR_NOOP("Advanced"); file: "SidebarAdvanced.qml" }
|
ListElement { text: QT_TR_NOOP("Advanced"); file: "SidebarAdvanced.qml" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,7 @@ Column {
|
||||||
height: UM.Theme.sizes.line.height;
|
height: UM.Theme.sizes.line.height;
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
|
//: Configuration mode label
|
||||||
text: qsTr("Mode:");
|
text: qsTr("Mode:");
|
||||||
|
|
||||||
font: UM.Theme.fonts.sidebar_header;
|
font: UM.Theme.fonts.sidebar_header;
|
||||||
|
@ -65,6 +66,7 @@ Column {
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
|
//: Machine selection label
|
||||||
text: qsTr("Machine:");
|
text: qsTr("Machine:");
|
||||||
|
|
||||||
font: UM.Theme.fonts.sidebar_header;
|
font: UM.Theme.fonts.sidebar_header;
|
||||||
|
@ -110,6 +112,8 @@ Column {
|
||||||
height: UM.Theme.sizes.section.height;
|
height: UM.Theme.sizes.section.height;
|
||||||
|
|
||||||
iconSource: UM.Theme.icons.printsetup;
|
iconSource: UM.Theme.icons.printsetup;
|
||||||
|
|
||||||
|
//: Sidebar header label
|
||||||
text: qsTr("Print Setup");
|
text: qsTr("Print Setup");
|
||||||
enabled: false;
|
enabled: false;
|
||||||
|
|
||||||
|
|
|
@ -36,14 +36,17 @@ Item {
|
||||||
text: {
|
text: {
|
||||||
if (UM.Backend.progress < 0)
|
if (UM.Backend.progress < 0)
|
||||||
{
|
{
|
||||||
|
//: Sidebar configuration label
|
||||||
return qsTr("No Model Loaded");
|
return qsTr("No Model Loaded");
|
||||||
}
|
}
|
||||||
else if (!base.minimumPrintTime.valid || !base.maximumPrintTime.valid)
|
else if (!base.minimumPrintTime.valid || !base.maximumPrintTime.valid)
|
||||||
{
|
{
|
||||||
|
//: Sidebar configuration label
|
||||||
return qsTr("Calculating...")
|
return qsTr("Calculating...")
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
//: Sidebar configuration label
|
||||||
return qsTr("Estimated Print Time");
|
return qsTr("Estimated Print Time");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -79,6 +82,8 @@ Item {
|
||||||
Label {
|
Label {
|
||||||
anchors.left: parent.left;
|
anchors.left: parent.left;
|
||||||
anchors.verticalCenter: parent.verticalCenter;
|
anchors.verticalCenter: parent.verticalCenter;
|
||||||
|
|
||||||
|
//: Quality slider label
|
||||||
text: qsTr("Minimum\nDraft");
|
text: qsTr("Minimum\nDraft");
|
||||||
color: UM.Theme.colors.text;
|
color: UM.Theme.colors.text;
|
||||||
font: UM.Theme.fonts.default;
|
font: UM.Theme.fonts.default;
|
||||||
|
@ -87,6 +92,8 @@ Item {
|
||||||
Label {
|
Label {
|
||||||
anchors.right: parent.right;
|
anchors.right: parent.right;
|
||||||
anchors.verticalCenter: parent.verticalCenter;
|
anchors.verticalCenter: parent.verticalCenter;
|
||||||
|
|
||||||
|
//: Quality slider label
|
||||||
text: qsTr("Maximum\nQuality");
|
text: qsTr("Maximum\nQuality");
|
||||||
horizontalAlignment: Text.AlignRight;
|
horizontalAlignment: Text.AlignRight;
|
||||||
color: UM.Theme.colors.text;
|
color: UM.Theme.colors.text;
|
||||||
|
@ -98,6 +105,7 @@ Item {
|
||||||
Layout.fillWidth: true;
|
Layout.fillWidth: true;
|
||||||
Layout.preferredHeight: UM.Theme.sizes.section.height;
|
Layout.preferredHeight: UM.Theme.sizes.section.height;
|
||||||
|
|
||||||
|
//: Setting checkbox
|
||||||
text: qsTr("Enable Support");
|
text: qsTr("Enable Support");
|
||||||
|
|
||||||
style: UM.Theme.styles.checkbox;
|
style: UM.Theme.styles.checkbox;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue