Suggestion from Ramkumar
authorstffrdhrn <stffrdhrn>
Sat, 3 Dec 2005 12:53:02 +0000 (12:53 +0000)
committerstffrdhrn <stffrdhrn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 3 Dec 2005 12:53:02 +0000 (12:53 +0000)
- Do not set LANGUAGE either

SVN revision: 18813

src/bin/e_intl.c

index a23b522..745176c 100644 (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"))