[SCM] Kingston update notifier (update-notifier-kde) branch, master, updated. 95ccde4682d5f18aa48381ac211cfb0eb90ccde6
Pino Toscano
pino-guest at alioth.debian.org
Sat Jan 29 12:31:25 UTC 2011
The following commit has been merged in the master branch:
commit 95ccde4682d5f18aa48381ac211cfb0eb90ccde6
Author: Pino Toscano <pino at kde.org>
Date: Sat Jan 29 13:30:43 2011 +0100
fix an untranslatable message
most probably not what could appear a clean solution, but it is the best I could come up with
---
debian/changelog | 2 ++
src/notifier.cpp | 4 +++-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index d8c145a..9e377c6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,7 @@
kingston-update-notifier (1.2.1) UNRELEASED; urgency=low
+ [ Pino Toscano ]
+ * Fix an untranslatable message.
-- Sune Vuorela <sune at debian.org> Sat, 29 Jan 2011 13:29:23 +0100
diff --git a/src/notifier.cpp b/src/notifier.cpp
index 7bef906..8ad07e1 100644
--- a/src/notifier.cpp
+++ b/src/notifier.cpp
@@ -59,7 +59,9 @@ void notifier_t::notify_new_updates(int updates, int security_updates) {
if(updates==0) {
show_update_notification(i18n("You should update your system"), i18np("There is %1 security update available", "There are %1 security updates available", security_updates==0), "dialog-warning");
} else {
- show_update_notification(i18n("You should update your system"), QString("There is %1 updates and %2 security updates available").arg(updates).arg(security_updates), "dialog-warning" );
+ const QString updates_text = i18n("%1 update", "%1 updates", updates);
+ const QString security_updates_text = i18n("%1 security update", "%1 security updates", security_updates);
+ show_update_notification(i18n("You should update your system"), i18nc("%1 is e.g. '3 updates'; %2 is e.g. '1 security update'", "There are: %1, and %2", updates_text, security_updates_text), "dialog-warning");
}
}
--
Kingston update notifier (update-notifier-kde)
More information about the pkg-kde-commits
mailing list