mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-09 08:38:43 +01:00
Fix an error in string resource (#4997)
This commit is contained in:
parent
491044b0c5
commit
953f34f5e3
1
changelog.d/4997.bugfix
Normal file
1
changelog.d/4997.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Fix an error in string resource
|
@ -190,7 +190,11 @@ class MessageItemFactory @Inject constructor(
|
||||
when {
|
||||
isEnded -> stringProvider.getQuantityString(R.plurals.poll_total_vote_count_after_ended, it, it)
|
||||
didUserVoted -> stringProvider.getQuantityString(R.plurals.poll_total_vote_count_before_ended_and_voted, it, it)
|
||||
else -> stringProvider.getQuantityString(R.plurals.poll_total_vote_count_before_ended_and_not_voted, it, it)
|
||||
else -> if (it == 0) {
|
||||
stringProvider.getString(R.string.poll_no_votes_cast)
|
||||
} else {
|
||||
stringProvider.getQuantityString(R.plurals.poll_total_vote_count_before_ended_and_not_voted, it, it)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3693,8 +3693,8 @@
|
||||
<item quantity="one">Based on %1$d vote</item>
|
||||
<item quantity="other">Based on %1$d votes</item>
|
||||
</plurals>
|
||||
<string name="poll_no_votes_cast">No votes cast</string>
|
||||
<plurals name="poll_total_vote_count_before_ended_and_not_voted">
|
||||
<item quantity="zero">No votes cast</item>
|
||||
<item quantity="one">%1$d vote cast. Vote to the see the results</item>
|
||||
<item quantity="other">%1$d votes cast. Vote to the see the results</item>
|
||||
</plurals>
|
||||
|
Loading…
x
Reference in New Issue
Block a user