W3C home > Mailing lists > Public > www-international@w3.org > April to June 2008

Re: Language tag education and negotiation

From: Nicolas Krebs <nicolas1.krebs3@netcourrier.com>
Date: Mon, 28 Apr 2008 19:46:39 +0200
To: www-international@w3.org
Message-Id: <mnet1.1209404799.20299.nicolas1.krebs3@netcourrier.com>

>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

This is a well know issue. It is know from year for other suffix, 
including suffix far more used than Mathematica, 
and language more used than Norwegian Bokmål : 

«
Each language version is indicated by a special extension, which can 
appear before or after the .html extension. 
[...]
For our example the English, French and German files would be 
named, respectively, as follows:

    * example.html.en
    * example.html.fr
    * example.html.de
[...]
You should be careful with a few extensions. For example, using the 
ISO code for Polish, .pl, would confuse it with the extension typically 
used to indicate Perl documents.
»
(Richard Ishida, Martin Dürst, « FAQ: Apache MultiViews language 
negotiation set up », section « File naming », W3C, 2004, 
http://www.w3.org/International/questions/qa-apache-lang-neg#naming , 
2006-11-25 16:45 GMT version, 
English language version 
http://www.w3.org/International/questions/qa-apache-lang-neg.en#naming )


You can avoid the issue by « put the .html extension last »
(as wrote in the same section), thus having « example.en.html »
and so on (idem). 


And for your main issue (educate users of language tag
and make them read the f* manual), you can try (showing them)
http://www.langtag.net/registries/registry-html/language/no.html
http://www.langtag.net/registries/registry-html/language/nb.html
http://www.langtag.net/registries/registry-html/language/nn.html
Received on Monday, 28 April 2008 17:53:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 19:17:17 GMT