Christian Weisgerber:

> Marc Espie:
> 
> >   g_setenv ("LANGUAGE", language, TRUE);
> >   setlocale (LC_ALL, "");
> 
> From the gettext manual:
>   Note: The variable LANGUAGE is ignored if the locale is set to 'C'. In
>   other words, you have to first enable localization, by setting LANG (or
>   LC_ALL) to a value other than 'C', before you can use a language
>   priority list through the LANGUAGE variable.

And that is exactly what I observe with gimp after setting the
language to French in the Preferences dialog.

If I set any of the locale-related environment variables LC_ALL,
LC_MESSAGES, or LANG to _any_ value, gimp will start up in French.
Otherwise it will come up in English.

The "bug" here is that gimp's authors assume that the program will
run with locale settings in the environment.  I think typical Linux
distributions have had such a default for a long time.

-- 
Christian "naddy" Weisgerber                          [email protected]

Reply via email to