summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/main.qml
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-06-24 22:09:38 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-25 13:56:04 +0900
commit03badea06f2bcfa9ebd6e7033710ac01ffac103f (patch)
treeab287e20510b018b965349ceffdd7eec64f7c212 /mobile-widgets/qml/main.qml
parentd93280f1dc30939c94259afccba6e112b7090892 (diff)
downloadsubsurface-03badea06f2bcfa9ebd6e7033710ac01ffac103f.tar.gz
QML UI: make toast message translatable
Restyle construction of toast message and enable translation for it. Further, removed newline characters as they break the lines at non-logical positions. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'mobile-widgets/qml/main.qml')
-rw-r--r--mobile-widgets/qml/main.qml10
1 files changed, 3 insertions, 7 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index 644d62e17..974ab0413 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -193,13 +193,9 @@ Kirigami.ApplicationWindow {
onTriggered: {
syncToCloud = !syncToCloud
if (!syncToCloud) {
- var alertText = "Turning off automatic sync to cloud causes all data\n"
- alertText +="to only be stored locally.\n"
- alertText += "This can be very useful in situations with\n"
- alertText += "limited or no network access.\n"
- alertText += "Please chose 'Manual sync with cloud' if you have network\n"
- alertText += "connectivity and want to sync your data to cloud storage."
- showPassiveNotification(alertText, 10000)
+ showPassiveNotification(qsTr("Turning off automatic sync to cloud causes all data to only be \
+stored locally. This can be very useful in situations with limited or no network access. Please choose 'Manual sync with cloud' \
+if you have network connectivity and want to sync your data to cloud storage."), 10000)
}
}
}