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

Package searches in French, despite Accept-Language



The main Debian site is fine, but when searching for packages, I get
the UI in English and the package descriptions in French (when
available).

I note that if I click on the French (français) language selector at
the bottom, the page is identical, except that 'français' is missing
as an option.  So evidently, I'm getting the French version, it's just
that the UI doesn't have French translations yet.

Unfortunately, that means I can't tell if I'm truly getting a French
version of the page, or if it's just a bug in selecting which package
description to show me.

My Accept-Language header, as taken from 'tcpflow' output:

	en-gb,en-ca;q=0.8,en;q=0.7,fr-ca;q=0.5,fr;q=0.3,ja;q=0.2

It's true that French is in there, but ranked lower than English.
Having read the page on "How to set the default document language", it
basically told me I'd done everything correctly, with the possible
exception that I do indeed use country subcodes.  However, the problem
persists even if I remove the subcodes.

Interestingly, I do not get the Japanese version if I remove French, nor
if I promote Japanese to be more preferred than French; in both cases, I
get English, as expected.

The problem is easily reproduced at the lowest level, and I've done so
from at least two remote hosts:

    % netcat packages.debian.org 80 | grep classique | wc -l
  <input>
    GET /hello HTTP/1.0
    Host: packages.debian.org
    Accept-Language: en-gb,en-ca;q=0.8,en;q=0.7,fr-ca;q=0.5,fr;q=0.3,ja;q=0.2

  <output>
    5

I've tried inputs as clear-cut as "en;q=1.0,fr;q=0.1" with the same
result, but plain "en" works (outputs '0').

Note that "en;q=1.0,ja;q=0.1" delivers English content as expected, so
it seems to be specific to French, or else specific to the package
descriptions.

Attachment: signature.asc
Description: Digital signature


Reply to: