Make summary translation plural sensitive

This commit is contained in:
Nicolas Werner 2023-05-29 20:31:57 +02:00
parent 1212e5b317
commit bd8bf91fdb
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -373,8 +373,7 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QObject *parent)
} }
QString body; QString body;
for (const auto &[roomModel, nbNotifs] : missedEvents) { for (const auto &[roomModel, nbNotifs] : missedEvents) {
body += tr("%1 unread messages in room %2\n") body += tr("%n unread message(s) in room %1\n", nullptr, nbNotifs)
.arg(nbNotifs)
.arg(roomModel->roomName()); .arg(roomModel->roomName());
} }
emit notificationsManager->systemPostNotificationCb( emit notificationsManager->systemPostNotificationCb(