Merge pull request #5425 from element-hq/feature/bma/leaveSpaceWording
Leave spave: iteration on string value.
This commit is contained in:
@@ -155,9 +155,8 @@ private fun LeaveSpaceHeader(
|
||||
),
|
||||
subTitle =
|
||||
if (state.selectableSpaceRooms is AsyncData.Success && state.selectableSpaceRooms.data.isNotEmpty()) {
|
||||
val count = state.selectableSpaceRooms.data.size
|
||||
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 {
|
||||
stringResource(R.string.screen_leave_space_subtitle)
|
||||
}
|
||||
|
||||
@@ -6,9 +6,6 @@
|
||||
<item quantity="other">"Leave %1$d rooms and space"</item>
|
||||
</plurals>
|
||||
<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">
|
||||
<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_subtitle_only_last_admin">"You will not be removed from the following room(s) because you\'re the only administrator:"</string>
|
||||
<string name="screen_leave_space_title">"Leave %1$s?"</string>
|
||||
</resources>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user