Re: (Newbie) Spanish translation?
Karsten Hilbert <[email protected]> Sat, 25 Jan 2025 16:31:42 +0100
| Newsgroups | gmane.comp.gnu.medical.devel |
|---|---|
| Message-ID | <[email protected]> |
Am Fri, Jan 24, 2025 at 08:41:26PM -0300 schrieb Maria Scappini:
> >You might want to run GNUmed like this for testing ;-)
> >
> > $> LANG=es_ES gnumed
>
> Thank you so much, this was a lifesaver!! Although in my system (debian) for some
> strange reason I have to run...
>
> $ LANGUAGE=es_ES gnumed
>
> ... for it to work!
Yeah, GNUmed is considerung several environment variables.
This is the relevant log fragment:
2025-01-25 16:26:41 DEBUG gm.i18n [3082319616 MainThread] (pycommon/gmI18N.py::install_domain() #328): checking process environment:
2025-01-25 16:26:41 DEBUG gm.i18n [3082319616 MainThread] (pycommon/gmI18N.py::install_domain() #334): ${LANGUAGE} = [None]
2025-01-25 16:26:41 DEBUG gm.i18n [3082319616 MainThread] (pycommon/gmI18N.py::install_domain() #334): ${LC_ALL} = [None]
2025-01-25 16:26:41 DEBUG gm.i18n [3082319616 MainThread] (pycommon/gmI18N.py::install_domain() #334): ${LC_MESSAGES} = [None]
2025-01-25 16:26:41 DEBUG gm.i18n [3082319616 MainThread] (pycommon/gmI18N.py::install_domain() #334): ${LANG} = [de_DE.UTF-8]
2025-01-25 16:26:41 DEBUG gm.i18n [3082319616 MainThread] (pycommon/gmI18N.py::install_domain() #365): new language candidate: de_DE -> de
So, in case, say, LC_MESSAGES is set, and a translation is
found for that setting, then $LANG won't be considered.
$LANGUAGE will, however, if a translation is found, because
it comes before LC_MESSAGES...
Karsten
--
GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B