Re: Language tag education and negotiation

John Cowan 2008-04-26 17.44:
> Leif Halvard Silli scripsit:
>
> > What you said above indicates that servers also must learn.
>
> Yes.  The fallback algorithm is hard-coded into Apache, and it would be a
> Good Thing to be able to add Apache directives that would modify its
> behavior so that a request for "nn" would fall back to "no" (and then
> maybe "nb").
>   

Through a friend, I just now became aware of a problem with mapping 'nb' 
to '.nb' on Apache. It turns out that the 'nb' MIME extension belongs to 
Mathematica [1]. Thus even if I use AddLanguage to mape nb to .nb, it 
doesn't work, becuase the file is served as application/mathematica.

This perhaps explains why Apache by default uses only the mappings '.nn' 
for 'nn' and '.no' for 'no'.

I don't know how simple it could be to get Apache to remove the 'nb' 
mapping from the Mathematic application? But I think, anyhow, that a 
solution might be to let 'nb' be mapped to '.no'. That might be the most 
compatible way to get everyone, except those that beg on their knees, to 
switch to using the language tags 'nn' and 'nb'.

[1] http://www.iana.org/assignments/media-types/application/mathematica
-- 
leif halvard silli

Received on Monday, 28 April 2008 01:31:28 UTC