From af50cdc7e10e4fc8225c54049a2586692de610bd Mon Sep 17 00:00:00 2001 From: Igor Murzov Date: Mon, 30 Jun 2014 03:44:07 +0400 Subject: [PATCH] Properly use gettext for plural forms --- src/modules/packagekit/e_mod_packagekit.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/modules/packagekit/e_mod_packagekit.c b/src/modules/packagekit/e_mod_packagekit.c index 11685d380..aa07844e1 100644 --- a/src/modules/packagekit/e_mod_packagekit.c +++ b/src/modules/packagekit/e_mod_packagekit.c @@ -152,12 +152,10 @@ packagekit_popup_update(E_PackageKit_Instance *inst) } } - if (num_updates == 1) - snprintf(buf, sizeof(buf), "%s", _("One update available")); - else if (num_updates > 1) - snprintf(buf, sizeof(buf), _("%d updates available"), num_updates); + if (num_updates >= 1) + snprintf(buf, sizeof(buf), P_("One update available", "%d updates available", num_updates), num_updates); else - snprintf(buf, sizeof(buf), "%s", _("Your system is updated")); + snprintf(buf, sizeof(buf), _("Your system is updated")); e_widget_label_text_set(inst->popup_label, buf); }