mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 12:00:03 +03:00
Use plurals
This commit is contained in:
parent
12d969b2c0
commit
cc80bf986c
2 changed files with 6 additions and 2 deletions
|
@ -40,7 +40,8 @@ class TestAvailableUnifiedPushDistributors @Inject constructor(
|
|||
}
|
||||
)
|
||||
} else {
|
||||
stringProvider.getString(R.string.settings_troubleshoot_test_distributors_many, distributors.size + 1)
|
||||
val quantity = distributors.size + 1
|
||||
stringProvider.getQuantityString(R.plurals.settings_troubleshoot_test_distributors_many, quantity, quantity)
|
||||
}
|
||||
status = TestStatus.SUCCESS
|
||||
}
|
||||
|
|
|
@ -3077,7 +3077,10 @@
|
|||
<string name="settings_troubleshoot_test_distributors_title">Available methods</string>
|
||||
<string name="settings_troubleshoot_test_distributors_gplay">No other method than Google Play Service found.</string>
|
||||
<string name="settings_troubleshoot_test_distributors_fdroid">No other method than background synchronization found.</string>
|
||||
<string name="settings_troubleshoot_test_distributors_many">Found %d methods.</string>
|
||||
<plurals name="settings_troubleshoot_test_distributors_many">
|
||||
<item quantity="one">Found %d method.</item>
|
||||
<item quantity="other">Found %d methods.</item>
|
||||
</plurals>
|
||||
<string name="settings_troubleshoot_test_current_distributor_title">Method</string>
|
||||
<string name="settings_troubleshoot_test_current_distributor">Currently using %s.</string>
|
||||
<string name="settings_troubleshoot_test_current_endpoint_title">Endpoint</string>
|
||||
|
|
Loading…
Add table
Reference in a new issue