[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#455804: packages.debian.org displays in French whenever requested in Catalan

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).

Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)

Reply to: