mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-18 19:19:33 +01:00
Merge pull request #4725 from nextcloud/fix/noid/lintPlurals
fix(lint): Use plurals string instead of simple string
This commit is contained in:
commit
28c512e269
@ -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
|
||||
)
|
||||
|
||||
|
@ -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>
|
||||
|
@ -1,2 +1,2 @@
|
||||
DO NOT TOUCH; GENERATED BY DRONE
|
||||
<span class="mdl-layout-title">Lint Report: 9 errors and 106 warnings</span>
|
||||
<span class="mdl-layout-title">Lint Report: 9 errors and 105 warnings</span>
|
||||
|
Loading…
Reference in New Issue
Block a user