Enlightenment CVS committal

Author  : morlenxus
Project : e17
Module  : libs/efreet

Dir     : e17/libs/efreet/src/lib


Modified Files:
        efreet_ini.c 


Log Message:
enable failback when empty localisation string are found

===================================================================
RCS file: /cvs/e/e17/libs/efreet/src/lib/efreet_ini.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- efreet_ini.c        29 May 2008 02:00:04 -0000      1.16
+++ efreet_ini.c        22 Jul 2008 13:30:25 -0000      1.17
@@ -509,29 +509,28 @@
     {
         snprintf(buf, maxlen, "[EMAIL PROTECTED]", key, lang, country, 
modifier);
         val = efreet_ini_string_get(ini, buf);
-        if (val) found = 1;
+        if (val && (*val != '\0')) found = 1;
     }
 
     if (!found && lang && country)
     {
         snprintf(buf, maxlen, "%s[%s_%s]", key, lang, country);
         val = efreet_ini_string_get(ini, buf);
-        if (val) found = 1;
+        if (val && (*val != '\0')) found = 1;
     }
 
     if (!found && lang && modifier)
     {
         snprintf(buf, maxlen, "[EMAIL PROTECTED]", key, lang, modifier);
         val = efreet_ini_string_get(ini, buf);
-        if (val) found = 1;
+        if (val && (*val != '\0')) found = 1;
     }
 
     if (!found && lang)
     {
         snprintf(buf, maxlen, "%s[%s]", key, lang);
         val = efreet_ini_string_get(ini, buf);
-        if (val) found = 1;
-
+        if (val && (*val != '\0')) found = 1;
     }
 
     if (!found)



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to