[Pkg-privacy-commits] [tails-installer] 73/210: Added qsTr to strings in qml files
Intrigeri
intrigeri at moszumanska.debian.org
Wed May 24 15:26:29 UTC 2017
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to tag 3.90.0
in repository tails-installer.
commit 57e946b651bc6c37792245680ad06e73edc1740e
Author: Martin Briza <mbriza at redhat.com>
Date: Tue Apr 14 12:04:38 2015 +0200
Added qsTr to strings in qml files
---
liveusb/components/DownloadDialog.qml | 8 ++++----
liveusb/components/ImageDetails.qml | 8 ++++----
liveusb/components/ImageList.qml | 2 +-
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/liveusb/components/DownloadDialog.qml b/liveusb/components/DownloadDialog.qml
index 3629da9..b3eac93 100644
--- a/liveusb/components/DownloadDialog.qml
+++ b/liveusb/components/DownloadDialog.qml
@@ -239,7 +239,7 @@ Dialog {
Text {
Layout.fillHeight: true
verticalAlignment: Text.AlignVCenter
- text: "Options"
+ text: qsTr("Options")
enabled: optionGroup.enabled
MouseArea {
anchors.fill: parent
@@ -260,7 +260,7 @@ Dialog {
bottom: parent.bottom
rightMargin: 6
}
- text: "Cancel"
+ text: qsTr("Cancel")
enabled: !liveUSBData.currentImage.writer.running
onClicked: {
liveUSBData.currentImage.download.cancel()
@@ -281,7 +281,7 @@ Dialog {
textColor: enabled ? "white" : palette.text
transformOrigin: Item.Center
enabled: pressedOnce || (liveUSBData.currentImage.readyToWrite && !liveUSBData.currentImage.writer.running && liveUSBData.usbDrives.length > 0)
- text: pressedOnce ? "Are you sure?" : "Write to disk"
+ text: pressedOnce ? qsTr("Are you sure?") : qsTr("Write to disk")
onClicked: {
if(pressedOnce || !liveUSBData.currentImage.warning || liveUSBData.currentImage.warning.length == 0) {
if (!liveUSBData.currentImage.readyToWrite) {
@@ -355,7 +355,7 @@ Dialog {
visible: optionGroup.checked
width: implicitWidth
property bool confirmed: false
- text: "Write the image immediately when the download is finished"
+ text: qsTr("Write the image immediately when the download is finished")
onClicked: {
acceptButton.pressedOnce = !acceptButton.pressedOnce
}
diff --git a/liveusb/components/ImageDetails.qml b/liveusb/components/ImageDetails.qml
index 5966b65..02b30a8 100644
--- a/liveusb/components/ImageDetails.qml
+++ b/liveusb/components/ImageDetails.qml
@@ -41,7 +41,7 @@ Item {
}
}
AdwaitaButton {
- text: "Write to USB disk"
+ text: qsTr("Write to USB disk")
color: "#628fcf"
textColor: "white"
onClicked: {
@@ -120,7 +120,7 @@ Item {
color: "gray"
AdwaitaButton {
- text: "Select the file"
+ text: qsTr("Select the file")
Layout.alignment: Qt.AlignHCenter
visible: liveUSBData.currentImage.isLocal
onClicked: {
@@ -142,7 +142,7 @@ Item {
width: Layout.width
wrapMode: Text.WordWrap
text: liveUSBData.currentImage.isLocal ?
- ("Selected image: " + (liveUSBData.currentImage.path ? (((String)(liveUSBData.currentImage.path)).split("/").slice(-1)[0]) : "None"))
+ (qsTr("Selected image: ") + (liveUSBData.currentImage.path ? (((String)(liveUSBData.currentImage.path)).split("/").slice(-1)[0]) : qsTr("None")))
: liveUSBData.currentImage.fullDescription
font.pointSize: 9
}
@@ -189,7 +189,7 @@ Item {
}
FileDialog {
id: fileDialog
- nameFilters: [ "Image files (*.iso)", "All files (*)"]
+ nameFilters: [ qsTr("Image files (*.iso)"), "All files (*)"]
onAccepted: {
liveUSBData.currentImage.path = fileUrl
}
diff --git a/liveusb/components/ImageList.qml b/liveusb/components/ImageList.qml
index dde6bae..9c5cf8c 100644
--- a/liveusb/components/ImageList.qml
+++ b/liveusb/components/ImageList.qml
@@ -82,7 +82,7 @@ Item {
Text {
anchors.fill: parent
color: "light gray"
- text: "find an operating system image"
+ text: qsTr("Find an operating system image")
visible: !parent.activeFocus && parent.text.length == 0
verticalAlignment: Text.AlignVCenter
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/tails-installer.git
More information about the Pkg-privacy-commits
mailing list