mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 11:39:42 +01:00
fix(lint): Use plurals string instead of simple string
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
cafb82b76d
commit
f02cd80c5e
@ -109,8 +109,9 @@ class SystemMessageViewHolder(itemView: View) : MessageHolders.IncomingTextMessa
|
|||||||
binding.expandCollapseIcon.visibility = View.VISIBLE
|
binding.expandCollapseIcon.visibility = View.VISIBLE
|
||||||
|
|
||||||
if (!message.isExpanded) {
|
if (!message.isExpanded) {
|
||||||
val similarMessages = String.format(
|
val similarMessages = sharedApplication!!.resources.getQuantityString(
|
||||||
sharedApplication!!.resources.getString(R.string.see_similar_system_messages),
|
R.plurals.see_similar_system_messages,
|
||||||
|
message.expandableChildrenAmount,
|
||||||
message.expandableChildrenAmount
|
message.expandableChildrenAmount
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -442,7 +442,10 @@ How to translate with transifex:
|
|||||||
<string name="nc_add_attachment">Add attachment</string>
|
<string name="nc_add_attachment">Add attachment</string>
|
||||||
<string name="emoji_category_recent">Recent</string>
|
<string name="emoji_category_recent">Recent</string>
|
||||||
<string name="emoji_backspace">Backspace</string>
|
<string name="emoji_backspace">Backspace</string>
|
||||||
<string name="see_similar_system_messages">See %1$d similar messages</string>
|
<plurals name="see_similar_system_messages">
|
||||||
|
<item quantity="one">See %d similar message</item>
|
||||||
|
<item quantity="other">See %d similar messages</item>
|
||||||
|
</plurals>
|
||||||
|
|
||||||
<!-- Conversation info guest access -->
|
<!-- Conversation info guest access -->
|
||||||
<string name="nc_guest_access">Guest access</string>
|
<string name="nc_guest_access">Guest access</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user