Small fix and avoid using 1, prefer %d (for translation)
This commit is contained in:
parent
44b2673848
commit
5eb66c4617
|
@ -492,7 +492,7 @@ class NotificationDrawerManager @Inject constructor(private val context: Context
|
|||
val messageStr = stringProvider.getQuantityString(R.plurals.room_new_messages_notification, simpleNotificationMessageCounter, simpleNotificationMessageCounter)
|
||||
if (simpleNotificationRoomCounter > 1) {
|
||||
// In several rooms
|
||||
val roomStr = stringProvider.getQuantityString(R.plurals.notification_unread_notified_messages_in_room_rooms, simpleNotificationMessageCounter, simpleNotificationMessageCounter)
|
||||
val roomStr = stringProvider.getQuantityString(R.plurals.notification_unread_notified_messages_in_room_rooms, simpleNotificationRoomCounter, simpleNotificationRoomCounter)
|
||||
stringProvider.getString(R.string.notification_unread_notified_messages_in_room, messageStr, roomStr)
|
||||
} else {
|
||||
// In one room
|
||||
|
|
|
@ -1143,24 +1143,24 @@
|
|||
|
||||
<!-- Notifications -->
|
||||
<plurals name="notification_unread_notified_messages">
|
||||
<item quantity="one">1 unread notified message</item>
|
||||
<item quantity="one">%d unread notified message</item>
|
||||
<item quantity="other">%d unread notified messages</item>
|
||||
</plurals>
|
||||
<plurals name="notification_unread_notified_messages_in_room_msgs">
|
||||
<item quantity="one">1 unread notified message</item>
|
||||
<item quantity="one">%d unread notified message</item>
|
||||
<item quantity="other">%d unread notified messages</item>
|
||||
</plurals>
|
||||
<plurals name="notification_unread_notified_messages_in_room_rooms">
|
||||
<item quantity="one">1 room</item>
|
||||
<item quantity="one">%d room</item>
|
||||
<item quantity="other">%d rooms</item>
|
||||
</plurals>
|
||||
<plurals name="notification_invitations">
|
||||
<item quantity="one">1 invitation</item>
|
||||
<item quantity="one">%d invitation</item>
|
||||
<item quantity="other">%d invitations</item>
|
||||
</plurals>
|
||||
|
||||
<plurals name="notification_compat_summary_line_for_room">
|
||||
<item quantity="one">%1$s: 1 message</item>
|
||||
<item quantity="one">%1$s: %2$d message</item>
|
||||
<item quantity="other">%1$s: %2$d messages</item>
|
||||
</plurals>
|
||||
<plurals name="notification_compat_summary_title">
|
||||
|
|
Loading…
Reference in New Issue