Suggestion from Ramkumar

- Do not set LANGUAGE either


SVN revision: 18813
This commit is contained in:
stffrdhrn 2005-12-03 12:53:02 +00:00 committed by stffrdhrn
parent 4eeab3fe72
commit 97fd4f7d87
1 changed files with 2 additions and 1 deletions

View File

@ -188,11 +188,12 @@ e_intl_language_set(const char *lang)
if (lang)
{
_e_intl_language = strdup(lang);
e_util_env_set("LANGUAGE", _e_intl_language);
/* Only set env vars is a non NULL locale was passed */
if (set_envars)
{
/* FIXME: maybe we should set these anyway? */
if (getenv("LANGUAGE"))
e_util_env_set("LANGUAGE", _e_intl_language);
if (getenv("LANG"))
e_util_env_set("LANG", _e_intl_language);
if (getenv("LC_ALL"))