Small fix and avoid using 1, prefer %d (for translation)

This commit is contained in:
Benoit Marty 2020-09-23 16:12:42 +02:00 committed by Benoit Marty
parent 44b2673848
commit 5eb66c4617
2 changed files with 6 additions and 6 deletions

View File

@ -492,7 +492,7 @@ class NotificationDrawerManager @Inject constructor(private val context: Context
val messageStr = stringProvider.getQuantityString(R.plurals.room_new_messages_notification, simpleNotificationMessageCounter, simpleNotificationMessageCounter) val messageStr = stringProvider.getQuantityString(R.plurals.room_new_messages_notification, simpleNotificationMessageCounter, simpleNotificationMessageCounter)
if (simpleNotificationRoomCounter > 1) { if (simpleNotificationRoomCounter > 1) {
// In several rooms // 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) stringProvider.getString(R.string.notification_unread_notified_messages_in_room, messageStr, roomStr)
} else { } else {
// In one room // In one room

View File

@ -1143,24 +1143,24 @@
<!-- Notifications --> <!-- Notifications -->
<plurals name="notification_unread_notified_messages"> <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> <item quantity="other">%d unread notified messages</item>
</plurals> </plurals>
<plurals name="notification_unread_notified_messages_in_room_msgs"> <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> <item quantity="other">%d unread notified messages</item>
</plurals> </plurals>
<plurals name="notification_unread_notified_messages_in_room_rooms"> <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> <item quantity="other">%d rooms</item>
</plurals> </plurals>
<plurals name="notification_invitations"> <plurals name="notification_invitations">
<item quantity="one">1 invitation</item> <item quantity="one">%d invitation</item>
<item quantity="other">%d invitations</item> <item quantity="other">%d invitations</item>
</plurals> </plurals>
<plurals name="notification_compat_summary_line_for_room"> <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> <item quantity="other">%1$s: %2$d messages</item>
</plurals> </plurals>
<plurals name="notification_compat_summary_title"> <plurals name="notification_compat_summary_title">