From aac96d6f50aea7d3daf2875c92f2311fbb5e4e15 Mon Sep 17 00:00:00 2001 From: Integral Date: Sun, 28 Jul 2024 00:57:25 +0800 Subject: [PATCH] Use %n to make the plural forms work properly --- src/TrayIcon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TrayIcon.cpp b/src/TrayIcon.cpp index 776140f2..44bfb6ca 100644 --- a/src/TrayIcon.cpp +++ b/src/TrayIcon.cpp @@ -132,7 +132,7 @@ TrayIcon::setUnreadCount(int count) QString toolTip = QLatin1String("nheko"); if (count > 0) { - toolTip.append(tr("\n%1 unread message(s)").arg(count)); + toolTip.append(tr("\n%n unread message(s)", "", count)); } setToolTip(toolTip);