Unify Raise Hand copy.

This commit is contained in:
Nicholas Tinsley
2024-06-06 15:26:44 -04:00
committed by Cody Henthorne
parent c59b74627f
commit c8a9759eba
2 changed files with 5 additions and 11 deletions

View File

@@ -188,11 +188,7 @@ private fun getSnackbarText(state: RaiseHandState): String {
return if (!state.isExpanded) {
pluralStringResource(id = R.plurals.CallRaiseHandSnackbar_raised_hands, count = state.raisedHands.size, getShortDisplayName(state.raisedHands), state.raisedHands.size - 1)
} else {
if (state.raisedHands.size == 1 && state.raisedHands.first().sender.isSelf) {
stringResource(id = R.string.CallOverflowPopupWindow__you_raised_your_hand)
} else {
pluralStringResource(id = R.plurals.CallOverflowPopupWindow__raised_a_hand, count = state.raisedHands.size, state.raisedHands.first().sender.getShortDisplayName(LocalContext.current), state.raisedHands.size - 1)
}
pluralStringResource(id = R.plurals.CallOverflowPopupWindow__raised_a_hand, count = state.raisedHands.size, state.raisedHands.first().sender.getShortDisplayName(LocalContext.current), state.raisedHands.size - 1)
}
}

View File

@@ -2077,18 +2077,16 @@
<string name="CallOverflowPopupWindow__lower_hand">Lower hand</string>
<!-- A negative button for a dialog confirming the user wants to lower their hand (withdraw a raised hand) -->
<string name="CallOverflowPopupWindow__cancel">Cancel</string>
<!-- A notification to the user that they successfully raised their hand -->
<string name="CallOverflowPopupWindow__you_raised_your_hand">You raised your hand</string>
<!-- A button to take you to a list of participants with raised hands -->
<string name="CallOverflowPopupWindow__view">View</string>
<!-- A notification to the user that one or more participants in the call successfully raised their hand. In the singular case, it is a name. In the plural case, it is a name or "You" -->
<!-- A notification to the user that one or more participants in the call successfully raised their hand. The first string may either be a name, or "You". The second placeholder is a number quantifying how many other hands are also raised. -->
<plurals name="CallOverflowPopupWindow__raised_a_hand">
<item quantity="one">%1$s has raised a hand</item>
<item quantity="other">%1$s + %2$d have raised a hand</item>
<item quantity="one">%1$s raised a hand</item>
<item quantity="other">%1$s + %2$d raised a hand</item>
</plurals>
<!-- A badge to show how many hands are raised. The first string may be a name or "You" -->
<!-- A badge to show how many hands are raised. The first string may either be a name, or "You". The second placeholder is a number quantifying how many other hands are also raised. -->
<plurals name="CallRaiseHandSnackbar_raised_hands">
<item quantity="one">%1$s</item>
<item quantity="other">%1$s +%2$d</item>