mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-20 13:38:34 +01:00
Plurals
This commit is contained in:
parent
f4c4e84ffe
commit
23f13b092f
@ -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() {
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user