This commit is contained in:
Benoit Marty 2020-09-10 18:00:06 +02:00
parent f4c4e84ffe
commit 23f13b092f
2 changed files with 5 additions and 5 deletions

View File

@ -161,11 +161,7 @@ class VectorSettingsNotificationPreferenceFragment @Inject constructor(
* @return the text
*/
private fun secondsToText(seconds: Int): String {
return if (seconds > 1) {
seconds.toString() + " " + getString(R.string.settings_seconds)
} else {
seconds.toString() + " " + getString(R.string.settings_second)
}
return resources.getQuantityString(R.plurals.seconds, seconds, seconds)
}
private fun handleSystemPreference() {

View File

@ -815,6 +815,10 @@
<string name="settings_set_sync_delay">Delay between each Sync</string>
<string name="settings_second">second</string>
<string name="settings_seconds">seconds</string>
<plurals name="seconds">
<item quantity="one">%d second</item>
<item quantity="other">%d seconds</item>
</plurals>
<string name="settings_version">Version</string>
<string name="settings_olm_version">olm version</string>