From bd8bf91fdbc8c6f4306c011384aec648ecfe4b5b Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 29 May 2023 20:31:57 +0200 Subject: [PATCH] Make summary translation plural sensitive --- src/ChatPage.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp index 495aa3c3..8feabfd0 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp @@ -373,8 +373,7 @@ ChatPage::ChatPage(QSharedPointer userSettings, QObject *parent) } QString body; for (const auto &[roomModel, nbNotifs] : missedEvents) { - body += tr("%1 unread messages in room %2\n") - .arg(nbNotifs) + body += tr("%n unread message(s) in room %1\n", nullptr, nbNotifs) .arg(roomModel->roomName()); } emit notificationsManager->systemPostNotificationCb(