From 26f69ece4d1d4245f903ba484c1fa3c6d844824a Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Thu, 4 Sep 2014 11:27:02 +0200 Subject: Dialogs: add qsTr() wrappers to all QML strings for translation Change-Id: If5304902f7167df56266542969723481477a7ba9 Reviewed-by: J-P Nurmi --- src/dialogs/DefaultMessageDialog.qml | 40 ++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'src/dialogs/DefaultMessageDialog.qml') diff --git a/src/dialogs/DefaultMessageDialog.qml b/src/dialogs/DefaultMessageDialog.qml index 5fa46cc3..b41b3743 100644 --- a/src/dialogs/DefaultMessageDialog.qml +++ b/src/dialogs/DefaultMessageDialog.qml @@ -140,115 +140,115 @@ AbstractMessageDialog { x: -content.outerSpacing Button { id: okButton - text: "OK" + text: qsTr("OK") onClicked: root.click(StandardButton.Ok) visible: root.standardButtons & StandardButton.Ok } Button { id: openButton - text: "Open" + text: qsTr("Open") onClicked: root.click(StandardButton.Open) visible: root.standardButtons & StandardButton.Open } Button { id: saveButton - text: "Save" + text: qsTr("Save") onClicked: root.click(StandardButton.Save) visible: root.standardButtons & StandardButton.Save } Button { id: saveAllButton - text: "Save All" + text: qsTr("Save All") onClicked: root.click(StandardButton.SaveAll) visible: root.standardButtons & StandardButton.SaveAll } Button { id: retryButton - text: "Retry" + text: qsTr("Retry") onClicked: root.click(StandardButton.Retry) visible: root.standardButtons & StandardButton.Retry } Button { id: ignoreButton - text: "Ignore" + text: qsTr("Ignore") onClicked: root.click(StandardButton.Ignore) visible: root.standardButtons & StandardButton.Ignore } Button { id: applyButton - text: "Apply" + text: qsTr("Apply") onClicked: root.click(StandardButton.Apply) visible: root.standardButtons & StandardButton.Apply } Button { id: yesButton - text: "Yes" + text: qsTr("Yes") onClicked: root.click(StandardButton.Yes) visible: root.standardButtons & StandardButton.Yes } Button { id: yesAllButton - text: "Yes to All" + text: qsTr("Yes to All") onClicked: root.click(StandardButton.YesToAll) visible: root.standardButtons & StandardButton.YesToAll } Button { id: noButton - text: "No" + text: qsTr("No") onClicked: root.click(StandardButton.No) visible: root.standardButtons & StandardButton.No } Button { id: noAllButton - text: "No to All" + text: qsTr("No to All") onClicked: root.click(StandardButton.NoToAll) visible: root.standardButtons & StandardButton.NoToAll } Button { id: discardButton - text: "Discard" + text: qsTr("Discard") onClicked: root.click(StandardButton.Discard) visible: root.standardButtons & StandardButton.Discard } Button { id: resetButton - text: "Reset" + text: qsTr("Reset") onClicked: root.click(StandardButton.Reset) visible: root.standardButtons & StandardButton.Reset } Button { id: restoreDefaultsButton - text: "Restore Defaults" + text: qsTr("Restore Defaults") onClicked: root.click(StandardButton.RestoreDefaults) visible: root.standardButtons & StandardButton.RestoreDefaults } Button { id: cancelButton - text: "Cancel" + text: qsTr("Cancel") onClicked: root.click(StandardButton.Cancel) visible: root.standardButtons & StandardButton.Cancel } Button { id: abortButton - text: "Abort" + text: qsTr("Abort") onClicked: root.click(StandardButton.Abort) visible: root.standardButtons & StandardButton.Abort } Button { id: closeButton - text: "Close" + text: qsTr("Close") onClicked: root.click(StandardButton.Close) visible: root.standardButtons & StandardButton.Close } Button { id: moreButton - text: "Show Details..." + text: qsTr("Show Details...") onClicked: content.state = (content.state === "" ? "expanded" : "") visible: root.detailedText.length > 0 } Button { id: helpButton - text: "Help" + text: qsTr("Help") onClicked: root.click(StandardButton.Help) visible: root.standardButtons & StandardButton.Help } @@ -303,7 +303,7 @@ AbstractMessageDialog { } PropertyChanges { target: moreButton - text: "Hide Details" + text: qsTr("Hide Details") } } ] -- cgit v1.2.1