fix(lint): Use plurals string instead of simple string

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2025-02-16 16:19:14 +01:00 committed by backportbot[bot]
parent cafb82b76d
commit f02cd80c5e
2 changed files with 7 additions and 3 deletions

View File

@ -109,8 +109,9 @@ class SystemMessageViewHolder(itemView: View) : MessageHolders.IncomingTextMessa
binding.expandCollapseIcon.visibility = View.VISIBLE
if (!message.isExpanded) {
val similarMessages = String.format(
sharedApplication!!.resources.getString(R.string.see_similar_system_messages),
val similarMessages = sharedApplication!!.resources.getQuantityString(
R.plurals.see_similar_system_messages,
message.expandableChildrenAmount,
message.expandableChildrenAmount
)

View File

@ -442,7 +442,10 @@ How to translate with transifex:
<string name="nc_add_attachment">Add attachment</string>
<string name="emoji_category_recent">Recent</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 -->
<string name="nc_guest_access">Guest access</string>