e i18n: When the user uses the system default localization, he may have different values set for each LC_ variable.

He may, for instance, want to have messages in English and dates in French. Let Enlightenment handle that by not setting everything to the LANG value.


SVN revision: 72232
This commit is contained in:
Chidambar Zinnoury 2012-06-16 12:10:03 +00:00
parent 4c3d81f1ad
commit ded0b195fa
1 changed files with 5 additions and 1 deletions

View File

@ -192,9 +192,13 @@ e_intl_language_set(const char *lang)
/* Unset LANGUAGE, apparently causes issues if set */
e_util_env_set("LANGUAGE", NULL);
efreet_dirs_reset();
setlocale(LC_ALL, lang);
}
else
{
setlocale(LC_ALL, "");
}
setlocale(LC_ALL, lang);
if (_e_intl_language)
{
char *locale_path;