SettingsLayout: use minute(s) to simplify for translation

This commit is contained in:
rating89us 2020-05-09 18:42:11 +02:00 committed by rating89us
parent c20a0ef928
commit 25a44cd3cd

View file

@ -109,7 +109,7 @@ Rectangle {
stepSize: 1
to: 60
value: persistentSettings.autosaveMinutes
text: "%1 %2 %3".arg(qsTr("Every")).arg(value).arg(qsTr("minute(s)")) + translationManager.emptyString
text: qsTr("Every %n minute(s)", "0", value) + translationManager.emptyString
onMoved: persistentSettings.autosaveMinutes = value
}
@ -129,10 +129,7 @@ Rectangle {
stepSize: 1
to: 60
value: persistentSettings.lockOnUserInActivityInterval
text: {
var minutes = value > 1 ? qsTr("minutes") : qsTr("minute");
return qsTr("After ") + value + " " + minutes + translationManager.emptyString;
}
text: qsTr("After %n minute(s)", "0", value) + translationManager.emptyString
onMoved: persistentSettings.lockOnUserInActivityInterval = value
}