summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2020-11-23 16:54:49 +0200
committerSamuli Piippo <samuli.piippo@qt.io>2020-11-23 15:36:10 +0000
commit5082f61cfda5528a1a59714b6c29f67b7c5064e1 (patch)
tree2c7193485648a9d2d3e241e8c2b59ab5bea989c2
parentbf3fd762eda0d72845fd0a828c54e558f6a7e92a (diff)
startupscreen: use translation macro for UI texts
Mark all UI texts for translations, but leave the actual translation for later date. Task-number: QTBUG-88021 Change-Id: I0ffbe3a96de22acf87e2b3c3e3941d03bc5b861c Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
-rw-r--r--startupscreen/MainView.qml8
-rw-r--r--startupscreen/RebootDialog.qml4
-rw-r--r--startupscreen/TextButton.qml2
-rw-r--r--startupscreen/UsbModeDialog.qml6
4 files changed, 10 insertions, 10 deletions
diff --git a/startupscreen/MainView.qml b/startupscreen/MainView.qml
index c297f41..e4fa2f5 100644
--- a/startupscreen/MainView.qml
+++ b/startupscreen/MainView.qml
@@ -99,7 +99,7 @@ Item {
Text {
id: headerText_1
color: "#ffffff"
- text: "Get started with"
+ text: qsTr("Get started with")
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
font.pixelSize: textNormal
@@ -108,7 +108,7 @@ Item {
Text {
id: headerText_2
color: "#ffffff"
- text: "Boot to Qt "
+ text: qsTr("Boot to Qt ")
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom
font.bold: true
@@ -129,7 +129,7 @@ Item {
Text {
id: bodyText
color: "#ffffff"
- text: "How to install demo\napplication from Qt Creator?"
+ text: qsTr("How to install demo\napplication from Qt Creator?")
font.pixelSize: textNormal
font.family: "Titillium Web"
anchors.horizontalCenter: parent.horizontalCenter
@@ -201,7 +201,7 @@ Item {
Text {
id: ipLabel
color: "grey"
- text: "Networks:"
+ text: qsTr("Networks:")
anchors.bottom: ipAddress.top
anchors.horizontalCenter: ipAddress.horizontalCenter
font.pixelSize: textNormal
diff --git a/startupscreen/RebootDialog.qml b/startupscreen/RebootDialog.qml
index 12ba5bd..3a9e8a7 100644
--- a/startupscreen/RebootDialog.qml
+++ b/startupscreen/RebootDialog.qml
@@ -61,7 +61,7 @@ Dialog {
focus: true
modal: true
- title: "Reboot Device"
+ title: qsTr("Reboot Device")
standardButtons: Dialog.Ok | Dialog.Cancel
ColumnLayout {
@@ -69,7 +69,7 @@ Dialog {
anchors.fill: parent
Label {
elide: Label.ElideRight
- text: "The settings change requires device to be rebooted."
+ text: qsTr("The settings change requires device to be rebooted.")
Layout.fillWidth: true
wrapMode: Label.Wrap
}
diff --git a/startupscreen/TextButton.qml b/startupscreen/TextButton.qml
index 1eb8303..f897942 100644
--- a/startupscreen/TextButton.qml
+++ b/startupscreen/TextButton.qml
@@ -71,7 +71,7 @@ Rectangle {
Text {
id: buttonLabel
color: "white"
- text: "Learn more..."
+ text: qsTr("Learn more...")
horizontalAlignment: Text.AlignHCenter
font.bold: true
anchors.centerIn: parent
diff --git a/startupscreen/UsbModeDialog.qml b/startupscreen/UsbModeDialog.qml
index 10cb3f3..e923ac9 100644
--- a/startupscreen/UsbModeDialog.qml
+++ b/startupscreen/UsbModeDialog.qml
@@ -62,7 +62,7 @@ Dialog {
focus: true
modal: true
- title: "USB Ethernet mode"
+ title: qsTr("USB Ethernet mode")
standardButtons: Dialog.Ok | Dialog.Cancel
RebootDialog {
@@ -83,9 +83,9 @@ Dialog {
anchors.fill: parent
Label {
elide: Label.ElideRight
- text: "Switch the USB Ethernet mode used for Qt Creator connection. "
+ text: qsTr("Switch the USB Ethernet mode used for Qt Creator connection. "
+ "CDCECM supports Linux and macOS hosts, "
- + "while RNDIS supports Linux and Windows hosts."
+ + "while RNDIS supports Linux and Windows hosts.")
Layout.fillWidth: true
wrapMode: Label.Wrap
}