Enlightenment CVS committal

Author  : shorne
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_int_config_intl.c 


Log Message:
Fix some issues found by Yasufumi, 
 * If lang is null the i18n dialog crashes
 * Languages in basic list were not translated

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_intl.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e_int_config_intl.c 21 Sep 2006 12:48:48 -0000      1.3
+++ e_int_config_intl.c 25 Sep 2006 13:16:49 -0000      1.4
@@ -690,7 +690,8 @@
      }
 
    /* Make sure we know the currently configured locale */
-   cfdata->cur_language = strdup(e_config->language);
+   if (e_config->language)
+     cfdata->cur_language = strdup(e_config->language);
    
    return;
 }
@@ -817,7 +818,7 @@
        const char *trans;
 
        key = basic_language_predefined_pairs[i].locale_key;
-       trans = basic_language_predefined_pairs[i].locale_translation;
+       trans = _(basic_language_predefined_pairs[i].locale_translation);
        e_widget_ilist_append(cfdata->gui.blang_list, NULL, trans, NULL, NULL, 
key);
        i++;
      }



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to