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