Re: LANGUAGE variable set by D-I (was: Re: Bug#356997: apt: internationalization of yes/no answers does not accept displayed answers)
On Fri, Mar 17, 2006 at 08:37:19AM +0100, Jens Seidel wrote:
> Am Freitag, 17. März 2006 07:31 schrieb Christian Perrier:
> > This is actually something that we have kept all along D-I history but
> > I don't see much point in keeping this except for languages where we
> > would like to set languages other than English as "backup".
> >
> > And, now we have similar stuff in all entries:
> >
> > fr_FR:fr:en_GB:en
> >
> > So, I hereby propose emptying the 7th field of localechooser which is
> > responsible for setting the LANGUAGE variable and have D-I set this
> > variable ONLY when it is not empty.
>
> There is nothing wrong with fr_FR:fr, right?
>
> Also we should consider possible dialects for *one* language such as de_DE,
> de_AT, de_BE, de_CH, de_LU for German. I remember that there exist some
> translations only in one dialect, just because the translator is not willing or
> unfamiliar with de_DE. Nevertheless they are more useful than the C fallback
> locale.
Your examples does not work, try
$ LANGUAGE=de_AT:de_BE:de_CH:de_LU:de strace -e open ls --usage 2>&1 > /dev/null |
grep /usr/share/locale
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
open("/usr/share/locale/de_AT/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de/LC_MESSAGES/libc.mo", O_RDONLY) = 3
open("/usr/share/locale/de_AT/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de/LC_MESSAGES/coreutils.mo", O_RDONLY) = 3
As you can see, message catalogs from de_BE, de_CH and de_LU are never
looked at.
This example also shows that setting LANGUAGE=fr_FR:fr does nothing more
than LANGUAGE=fr_FR.
Denis
Reply to: