diff options
| author | Safa Alfulaij <safa1996alfulaij@gmail.com> | 2015-10-23 15:03:12 (GMT) |
|---|---|---|
| committer | Aleix Pol <aleixpol@kde.org> | 2015-10-23 15:03:12 (GMT) |
| commit | 4e5297a18d649ace71b8e96d1ed2488cbe4af247 (patch) | |
| tree | 71bab5195f867e49263eabb893e1a58e1d8b1dcf | |
| parent | 470f1d85fc01e5ab22e6e95562a3489078cfdf50 (diff) | |
Fix plural issues in notifier
There are some plural strings in notifier which are marked for translation by i18n instead of i18np.
REVIEW: 125423
| -rw-r--r-- | notifier/MuonNotifier.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/notifier/MuonNotifier.cpp b/notifier/MuonNotifier.cpp index b62e0b5..4c6f514 100644 --- a/notifier/MuonNotifier.cpp +++ b/notifier/MuonNotifier.cpp @@ -139,11 +139,18 @@ QString MuonNotifier::extendedMessage() const uint securityCount = securityUpdatesCount(); uint count = updatesCount() + securityCount; if (count > 0 && securityCount > 0) { - return i18n("%1 packages to update, of which %2 are security updates", count, securityCount); + QString allUpdates = i18ncp("First part of '%1, %2'", + "1 package to update", "%1 packages to update", count); + + QString securityUpdates = i18ncp("Second part of '%1, %2'", + "of which 1 is security update", "of which %1 are security updates", securityCount); + + return i18nc("%1 is '%1 packages to update' and %2 is 'of which %1 is security updates'", + "%1, %2", allUpdates, securityUpdates); } else if (count > 0) { - return i18n("%1 packages to update", count); + return i18np("1 package to update", "%1 packages to update", count); } else if (securityCount > 0) { - return i18n("%1 security updates", securityCount); + return i18np("1 security update", "%1 security updates", securityCount); } else { return i18n("No packages to update"); } |
