Skip to content

Commit 8a72128

Browse files
committed
Use translations in the analytics dialog
1 parent 45a2b00 commit 8a72128

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

qml/AnalyticsConsentDialog.qml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import QtQuick.Layouts 1.13
66

77
AbstractDialog {
88
id: self
9-
title: 'Help improve Green'
9+
title: qsTrId('id_help_green_improve')
1010
modal: false
1111
showRejectButton: true
1212
closePolicy: Dialog.NoAutoClose
@@ -21,7 +21,7 @@ AbstractDialog {
2121
Label {
2222
Layout.fillWidth: true
2323
Layout.preferredWidth: 0
24-
text: 'If you agree, Green will collect anonymous data to optimize the user experience. No individual user or wallet can be identified.'
24+
text: qsTrId('id_if_you_agree_green_will_collect')
2525
wrapMode: Label.WordWrap
2626
}
2727
Pane {
@@ -49,7 +49,7 @@ AbstractDialog {
4949
Label {
5050
id: details_label
5151
Layout.fillWidth: true
52-
text: collapsible.collapsed ? qsTrId('Show details') : qsTrId('Hide details')
52+
text: collapsible.collapsed ? qsTrId('id_show_details') : qsTrId('id_hide_details')
5353
Image {
5454
anchors.right: parent.right
5555
anchors.verticalCenter: parent.verticalCenter
@@ -81,39 +81,39 @@ AbstractDialog {
8181
Layout.maximumWidth: 420
8282
topPadding: constants.p3 + constants.p2
8383
font.bold: true
84-
text: "What's collected"
84+
text: qsTrId('id_whats_collected')
8585
}
8686
Label {
8787
Layout.maximumWidth: 420
88-
text: "Page visits, button presses, general application configurations"
88+
text: "" + qsTrId('id_page_visits_button_presses')
8989
wrapMode: Label.WordWrap
9090
}
9191
Label {
9292
Layout.maximumWidth: 420
93-
text: "Operative System and application version, loading times, crashes"
93+
text: "" + qsTrId('id_os__app_version_loading_times')
9494
wrapMode: Label.WordWrap
9595
}
9696
Label {
9797
Layout.maximumWidth: 420
9898
topPadding: constants.p2
9999
font.bold: true
100-
text: "What's NOT collected"
100+
text: qsTrId('id_whats_not_collected')
101101
}
102102
Label {
103103
Layout.maximumWidth: 420
104-
text: "Recovery phrases, key material, addresses"
104+
text: "" + qsTrId('id_recovery_phrases_key_material')
105105
wrapMode: Label.WordWrap
106106
}
107107
Label {
108108
Layout.maximumWidth: 420
109-
text: "User contact info, IP address, location"
109+
text: "" + qsTrId('id_user_contact_info_ip_address')
110110
wrapMode: Label.WordWrap
111111
}
112112
Label {
113113
Layout.maximumWidth: 420
114114
textFormat: Text.RichText
115115
onLinkActivated: Qt.openUrlExternally(link)
116-
text: link('https://help.blockstream.com/hc/en-us/articles/5988514431897', qsTrId('Learn more'))
116+
text: link('https://help.blockstream.com/hc/en-us/articles/5988514431897', qsTrId('id_learn_more'))
117117
background: MouseArea {
118118
acceptedButtons: Qt.NoButton
119119
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor
@@ -134,7 +134,7 @@ AbstractDialog {
134134
}
135135
GButton {
136136
large: true
137-
text: qsTrId("Don't collect data")
137+
text: qsTrId('id_dont_collect_data')
138138
onClicked: {
139139
Settings.analytics = 'disabled'
140140
self.accept()
@@ -143,7 +143,7 @@ AbstractDialog {
143143
GButton {
144144
highlighted: true
145145
large: true
146-
text: qsTrId('Allow collection')
146+
text: qsTrId('id_allow_collection')
147147
onClicked: {
148148
Settings.analytics = 'enabled'
149149
self.accept()

0 commit comments

Comments
 (0)