On Fri, May 16, 2025 at 02:18:36PM +0200, pelzflorian (Florian Pelz) wrote:
> Hello Texinfo. Guix has a Texinfo manual translated to multiple
> languages:
>
> share/info/guix.info.gz leads to the English manual.
>
> There are also guix.de.info.gz, guix.fr.info.gz, guix.pt_BR.info.gz and
> more languages.
>
> Now the problem is that the command “info guix” does not open the
> English manual, but Spanish, because only in Guix’ Debian package, the
> Spanish manual comes first in the share/info/dir file.
>
> My question is: Is it to be expected that “info guix” opens (guix.es) when
> (guix.es) comes before (guix) in the dir file?
Yes, that is expected. If the entry in 'dir'
* Guix: (guix.es). Gestión del software instalado y la
configuración del sistema.
comes before the entry:
* Guix: (guix). Manage installed software and system
configuration.
then "info guix" will indeed load the Spanish version first.
> Note that “info "(guix)"” does select the English manual.
"info -f guix" also.
>
> This is unexpected as evident in two recent Guix bug reports
> <https://bugs.gnu.org/78134>, <https://bugs.gnu.org/78374>.
>
> Should Texinfo’s selection mechanism be changed? Or is it the fault of
> the Guix Debian package for putting (guix.es) before (guix) in the
> share/info/dir file?
I don't know if any changes are needed to Texinfo to support installation
of Info files in multiple languages. It is something that could
perhaps be implemented with existing Info features, such as search paths
and installing Info files in different directories depending on the language.