summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-05-29 20:31:57 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-05-29 20:31:57 +0200
commitbd8bf91fdbc8c6f4306c011384aec648ecfe4b5b (patch)
treeb2c26451dcec487f21661bf5f367bdf0c86a6f01 /src
parentCopy arguments for notification (diff)
downloadnheko-bd8bf91fdbc8c6f4306c011384aec648ecfe4b5b.tar.xz
Make summary translation plural sensitive
Diffstat (limited to 'src')
-rw-r--r--src/ChatPage.cpp3
1 files changed, 1 insertions, 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> 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(