[Pkg-privacy-commits] [tails-installer] 79/210: Use qsTranslate instead of qsTr
Intrigeri
intrigeri at moszumanska.debian.org
Wed May 24 15:26:30 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 4ec6382fcef7b773de26902779d5958432611f05
Author: Martin Briza <mbriza at redhat.com>
Date: Thu Apr 16 14:39:45 2015 +0200
Use qsTranslate instead of qsTr
---
i18n.sh | 4 ++--
liveusb/components/DownloadDialog.qml | 10 +++++-----
liveusb/components/ImageDetails.qml | 10 +++++-----
liveusb/components/ImageList.qml | 2 +-
4 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/i18n.sh b/i18n.sh
index 50a86bb..2221c82 100644
--- a/i18n.sh
+++ b/i18n.sh
@@ -17,7 +17,7 @@ xgettext \
--qt -L Java -L Python \
--package-name="$PACKAGE" \
--add-comments=TRANSLATORS \
- --keyword=qsTr \
- --keyword=qsTr:1,2 \
+ --keyword=qsTranslate \
+ --keyword=qsTranslate:1c,2 \
--copyright-holder="RedHat Inc." \
--from-code="UTF-8"
diff --git a/liveusb/components/DownloadDialog.qml b/liveusb/components/DownloadDialog.qml
index 8375302..c6bbdbc 100644
--- a/liveusb/components/DownloadDialog.qml
+++ b/liveusb/components/DownloadDialog.qml
@@ -6,7 +6,7 @@ import QtQuick.Window 2.0
Dialog {
id: root
- title: qsTr("Write %1 to USB").arg(liveUSBData.currentImage.name)
+ title: qsTranslate("", "Write %1 to USB").arg(liveUSBData.currentImage.name)
height: layout.height + 56
standardButtons: StandardButton.NoButton
@@ -239,7 +239,7 @@ Dialog {
Text {
Layout.fillHeight: true
verticalAlignment: Text.AlignVCenter
- text: qsTr("Options")
+ text: qsTranslate("", "Options")
enabled: optionGroup.enabled
MouseArea {
anchors.fill: parent
@@ -260,7 +260,7 @@ Dialog {
bottom: parent.bottom
rightMargin: 6
}
- text: qsTr("Cancel")
+ text: qsTranslate("", "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 ? qsTr("Are you sure?") : qsTr("Write to disk")
+ text: pressedOnce ? qsTranslate("", "Are you sure?") : qsTranslate("", "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: qsTr("Write the image immediately when the download is finished")
+ text: qsTranslate("", "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 79eb29a..5bb5b67 100644
--- a/liveusb/components/ImageDetails.qml
+++ b/liveusb/components/ImageDetails.qml
@@ -41,7 +41,7 @@ Item {
}
}
AdwaitaButton {
- text: qsTr("Write to USB disk")
+ text: qsTranslate("", "Write to USB Disk")
color: "#628fcf"
textColor: "white"
onClicked: {
@@ -120,7 +120,7 @@ Item {
color: "gray"
AdwaitaButton {
- text: qsTr("Select the file")
+ text: qsTranslate("", "Select the file")
Layout.alignment: Qt.AlignHCenter
visible: liveUSBData.currentImage.isLocal
onClicked: {
@@ -131,7 +131,7 @@ Item {
}
Text {
// I'm sorry, everyone, I can't find a better way to determine if the date is valid
- text: liveUSBData.currentImage.releaseDate.toLocaleDateString().length > 0 ? (qsTr("Released on %s").arg(liveUSBData.currentImage.releaseDate.toLocaleDateString())) : ""
+ text: liveUSBData.currentImage.releaseDate.toLocaleDateString().length > 0 ? (qsTranslate("", "Released on %s").arg(liveUSBData.currentImage.releaseDate.toLocaleDateString())) : ""
font.pointSize: 8
color: "gray"
}
@@ -142,7 +142,7 @@ Item {
width: Layout.width
wrapMode: Text.WordWrap
text: liveUSBData.currentImage.isLocal ?
- (qsTr("Selected image: %s").arg(liveUSBData.currentImage.path ? (((String)(liveUSBData.currentImage.path)).split("/").slice(-1)[0]) : qsTr("None")))
+ (qsTranslate("", "Selected image: %1").arg(liveUSBData.currentImage.path ? (((String)(liveUSBData.currentImage.path)).split("/").slice(-1)[0]) : qsTranslate("", "None")))
: liveUSBData.currentImage.fullDescription
font.pointSize: 9
}
@@ -189,7 +189,7 @@ Item {
}
FileDialog {
id: fileDialog
- nameFilters: [ qsTr("Image files (*.iso)"), qsTr("All files (*)")]
+ nameFilters: [ qsTranslate("", "Image files (*.iso)"), qsTranslate("", "All files (*)")]
onAccepted: {
liveUSBData.currentImage.path = fileUrl
}
diff --git a/liveusb/components/ImageList.qml b/liveusb/components/ImageList.qml
index 9c5cf8c..0e3b66c 100644
--- a/liveusb/components/ImageList.qml
+++ b/liveusb/components/ImageList.qml
@@ -82,7 +82,7 @@ Item {
Text {
anchors.fill: parent
color: "light gray"
- text: qsTr("Find an operating system image")
+ text: qsTranslate("", "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