garik pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=af50cdc7e10e4fc8225c54049a2586692de610bd

commit af50cdc7e10e4fc8225c54049a2586692de610bd
Author: Igor Murzov <[email protected]>
Date:   Mon Jun 30 03:44:07 2014 +0400

    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 11685d3..aa07844 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);
 }
 

-- 


Reply via email to