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

Re: 2 many language tags for Norwegian

From: Martin Duerst <duerst@it.aoyama.ac.jp>
Date: Tue, 29 Apr 2008 18:29:56 +0900
Message-Id: <6.0.0.20.2.20080429181256.0a11be30@localhost>
To: Leif Halvard Silli <lhs@malform.no>, Frank Ellermann <hmdmhdfmhdjmzdtjmzdtzktdkztdjz@gmail.com>
Cc: www-international@w3.org

At 09:47 08/04/26, Leif Halvard Silli wrote:

>But to examplify what I talked about: On my Apache installation, when I set Firefox to prefer 'en' and insert "AddLanguage en-GB .en-gb" in my Apache configuration file, and if the only available English version is index.html.en-gb, then Firefox will get and open that file.

Yes.

>This is the key thing. How can we get this to happen for Bokm虱 and Nynorsk?
>
>If it is possible to get the browser to a) send out that it prefers 'nn', while b) at the same time get it to fall back to no or nb if nn isn't awailable.

Just add no and nb to your preferences, after nn.

>It should be simple. When I select 'de', then I get de-AT if nothing else in German is awailable. When selecting 'en' then en-GB get served if nothing else is available in English.

Yes. Depending on whether there is a common first subtag or not,
the solution differs, but it's always possible to get things in
the desired order. Please note that you also need to set two
preferences in your browser if you prefer en-GB, but are okay
with en in general.

>I can set *my* browser to permit nb, nn and no. But not any browser. Not on OS X, at least. On OS X, the browser (Safari/Webkit and those that interact with the system - Camino/Opera) only sends out one accept language header.

In my view, such browsers are simply broken. And that has nothing to do
with the problem of organizing a hierarchy of closely related languages
or variants. Many people are multilingual, and need a way to express their
preferences. In my case, that typically looks like English, Japanese, German,
French,... Please file a bug for these browsers.

>When I set *my* browser to prefer nn,no,nb - in that order - and visit a web site running Apache, offering Norwegiang then it happens that I get the page in English.  This is not strange, because when I look inside Apache 1.3 on my Mac, then it has two AddLanguage options "ready": 'no' for Bokm虱 and 'nn' for nynorsk.

No, this IS strange. If you send preferences for all of nn, no, and nb
before any other language, and there is any of nn, no, and nb, then
you should get any of these, not something else.


>I can't set 'no' on top in my browser either, because then I will not be sereved 'nn' whenever a page exist as 'nn' and 'no'.

Of course, if you prefer nn, then that should come first.

Regards,   Martin.



#-#-#  Martin J. Du"rst, Assoc. Professor, Aoyama Gakuin University
#-#-#  http://www.sw.it.aoyama.ac.jp       mailto:duerst@it.aoyama.ac.jp     
Received on Wednesday, 30 April 2008 00:29:51 GMT

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