Fix some issues found by Yasufumi,

* If lang is null the i18n dialog crashes
 * Languages in basic list were not translated


SVN revision: 26141
This commit is contained in:
Stafford Mitchell Horne 2006-09-25 13:16:49 +00:00
parent 3336f89d2f
commit ebabb954a0
1 changed files with 3 additions and 2 deletions

View File

@ -690,7 +690,8 @@ _fill_data(E_Config_Dialog_Data *cfdata)
}
/* 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 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cf
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++;
}