Bug#455804: packages.debian.org displays in French whenever requested in Catalan
On Wed, Dec 12, 2007 at 02:11:43PM +0100, Robert Millan wrote:
> On Wed, Dec 12, 2007 at 12:11:17AM +0100, Frank Lichtenheld wrote:
> > On Tue, Dec 11, 2007 at 11:35:43PM +0100, Frank Lichtenheld wrote:
> > > On Tue, Dec 11, 2007 at 11:07:48PM +0100, Robert Millan wrote:
> > > > When a packages.debian.org page is requested in Catalan (either via http
> > > > headers or lang parameter), the result appears in French.
> > > >
> > > > For example: http://packages.debian.org/sid/grub-installer?lang=ca
> > >
> > > Hmm, indeed. Will investigate.
> > Locale::Maketext is a bit too smart for its own good. As documented, it
> > should try the fallbacks ('i-default','en','en-US') but before that
> > it tries I18N::LangTags::panic_languages, which in case of 'ca' returns
> > ('es','pt','it','fr'). Since fr is the only one of these packages.d.o is
> > currently translated to, it gets used. Will override that to directly
> > fall back to 'en', since that is probably less confusing.
> Yeah that's better, thanks.
> As for avoiding future problems, may I suggest using the Accept-Language
> header for the fallbacks? Then user can specify what do they want to
> fallback to (if they want at all).
Yeah, testing the DDTP languages and the .po languages seperatly is on
my TODO list. Currently they just get mixed together before the
Accept-Language header is investigated.
Frank Lichtenheld <email@example.com>