fix language config dialog loading of languages which don't contain region

SVN revision: 81234
This commit is contained in:
Mike Blumenkrantz 2012-12-18 11:04:41 +00:00
parent 77d578451c
commit 03f47c2b35
1 changed files with 4 additions and 1 deletions

View File

@ -660,7 +660,10 @@ _fill_data(E_Config_Dialog_Data *cfdata)
{
char *basic_language;
basic_language = e_intl_locale_parts_combine(locale_parts, E_INTL_LOC_LANG | E_INTL_LOC_REGION);
if (locale_parts->mask & E_INTL_LOC_REGION)
basic_language = e_intl_locale_parts_combine(locale_parts, E_INTL_LOC_LANG | E_INTL_LOC_REGION);
else if (locale_parts->lang)
basic_language = strdup(locale_parts->lang);
if (basic_language)
{
int i;