From: Enlightenment C. <no...@cv...> - 2006-09-25 13:16:52
|
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++; } |