mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Do not use plurals in this case since it can lead to lint issues since there is no %d in the value for one and this triggers a warning in some languages.
This commit is contained in:
+1
-2
@@ -155,9 +155,8 @@ private fun LeaveSpaceHeader(
|
|||||||
),
|
),
|
||||||
subTitle =
|
subTitle =
|
||||||
if (state.selectableSpaceRooms is AsyncData.Success && state.selectableSpaceRooms.data.isNotEmpty()) {
|
if (state.selectableSpaceRooms is AsyncData.Success && state.selectableSpaceRooms.data.isNotEmpty()) {
|
||||||
val count = state.selectableSpaceRooms.data.size
|
|
||||||
if (state.hasOnlyLastAdminRoom) {
|
if (state.hasOnlyLastAdminRoom) {
|
||||||
pluralStringResource(R.plurals.screen_leave_space_subtitle_only_last_admin, count, count)
|
stringResource(R.string.screen_leave_space_subtitle_only_last_admin)
|
||||||
} else {
|
} else {
|
||||||
stringResource(R.string.screen_leave_space_subtitle)
|
stringResource(R.string.screen_leave_space_subtitle)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,9 +6,6 @@
|
|||||||
<item quantity="other">"Leave %1$d rooms and space"</item>
|
<item quantity="other">"Leave %1$d rooms and space"</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
<string name="screen_leave_space_subtitle">"Select the rooms you’d like to leave which you\'re not the only administrator for:"</string>
|
<string name="screen_leave_space_subtitle">"Select the rooms you’d like to leave which you\'re not the only administrator for:"</string>
|
||||||
<plurals name="screen_leave_space_subtitle_only_last_admin">
|
<string name="screen_leave_space_subtitle_only_last_admin">"You will not be removed from the following room(s) because you\'re the only administrator:"</string>
|
||||||
<item quantity="one">"You will not be removed from the following room because you\'re the only administrator:"</item>
|
|
||||||
<item quantity="other">"You will not be removed from the following rooms because you\'re the only administrator:"</item>
|
|
||||||
</plurals>
|
|
||||||
<string name="screen_leave_space_title">"Leave %1$s?"</string>
|
<string name="screen_leave_space_title">"Leave %1$s?"</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user