bug 258246: RFC: Accept language header: 'en-gb' and matching
Gervase Markham
gerv at mozilla.org
Sun Sep 12 16:28:54 UTC 2004
Tobias Burnus wrote:
> The question is: Should we change the behaviour of Bugzilla? That is
> 'en-gb' should match 'en' (and (?) 'en-*'?). Should this be optional? Or
> what is
> the right (TM) way to proceed?
There certainly shouldn't be an option. We should pick the best
algorithm that works with what's out there and use it.
My Mozilla has Accept-Language: en-us, en;q=0.5. Which isn't accurate,
but then I don't install UK language packs. It does however give both
en-xx and en. Does e.g. the German language pack not change it to
de-de,de;q=0.5?
Whatever, I think that if someone sends de-de and we don't have a de-de
but do have a de, we should certainly match that rather than failing or
falling back to the default. Makes perfect sense.
Gerv
More information about the developers
mailing list