Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : uptime

Dir     : e_modules/uptime


Modified Files:
        e_mod_main.c 


Log Message:
Fix for Massimo's translation. Other languages can now translate the
user/users string.

===================================================================
RCS file: /cvs/e/e_modules/uptime/e_mod_main.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- e_mod_main.c        29 Jun 2006 19:56:51 -0000      1.13
+++ e_mod_main.c        2 Jul 2006 01:09:56 -0000       1.14
@@ -567,9 +567,14 @@
              inst->la[0], inst->la[1], inst->la[2]);
      }
    
-   if (inst->nusers != -1)
-     snprintf(users, sizeof(users), D_("user%s: %d"), (inst->nusers != 1) ? 
"s" : "", inst->nusers);
-
+   if (inst->nusers != -1) 
+     {
+       if (inst->nusers == 1)
+         snprintf(users, sizeof(users), D_("user: %d"), inst->nusers);
+       else if (inst->nusers > 1)
+         snprintf(users, sizeof(users), D_("users: %d"), inst->nusers);
+     }
+   
    edje_object_part_text_set(inst->ut->ut_obj, "uptime", u_date_time);
    edje_object_part_text_set(inst->ut->ut_obj, "load_average", load_avg);
    edje_object_part_text_set(inst->ut->ut_obj, "nusers", users);



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to