mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
d93280f1dc
commit
03badea06f
1 changed files with 3 additions and 7 deletions
|
@ -193,13 +193,9 @@ Kirigami.ApplicationWindow {
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
syncToCloud = !syncToCloud
|
syncToCloud = !syncToCloud
|
||||||
if (!syncToCloud) {
|
if (!syncToCloud) {
|
||||||
var alertText = "Turning off automatic sync to cloud causes all data\n"
|
showPassiveNotification(qsTr("Turning off automatic sync to cloud causes all data to only be \
|
||||||
alertText +="to only be stored locally.\n"
|
stored locally. This can be very useful in situations with limited or no network access. Please choose 'Manual sync with cloud' \
|
||||||
alertText += "This can be very useful in situations with\n"
|
if you have network connectivity and want to sync your data to cloud storage."), 10000)
|
||||||
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)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue