On Tue, 17 Nov 2020, Allin Cottrell wrote:
On Fedora 31 I can get both pt_PT and pt_BR to appear OK, either
using the
command-line,
LANG=pt_PT.UTF-8 gretl
LANG=pt_BR.UTF-8 gretl
or by selection under /Tools/Preferences/General.
It's true, when pt_BR is selected the Command and Functions help
text does not appear in Portuguese, only with pt_PT. I don't know
if there's a way to specify a fallback.
For good measure I've also tried on Arch Linux. There were a couple
of differences.
1) "LANG=<whatever> gretl" doesn't work: apparently the LANG setting
doesn't get through the shell script ("gretl" on Linux being a shell
script). But it does work if you specify gretlcli or gretl_x11
directly.
2) The translated help files DO appear when pt_BR is selected. This
suggests there must be some system setting for language fallback
that's not present on Fedora.
On Arch, as on Fedora 31, setting the language to pt or pt_BR via
the GUI preferences works fine.
Allin