Merge pull request #5425 from element-hq/feature/bma/leaveSpaceWording

Leave spave: iteration on string value.
This commit is contained in:
Benoit Marty
2025-09-29 15:10:16 +02:00
committed by GitHub
6 changed files with 10 additions and 14 deletions

View File

@@ -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)
}

View File

@@ -6,9 +6,6 @@
<item quantity="other">"Leave %1$d rooms and space"</item>
</plurals>
<string name="screen_leave_space_subtitle">"Select the rooms youd 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>