Use %n to make the plural forms work properly

This commit is contained in:
Integral 2024-07-28 00:57:25 +08:00
parent 01cc12fede
commit aac96d6f50
No known key found for this signature in database
GPG key ID: 06313911057DD5A8

View file

@ -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);