WO localization and accept-language header

Kasper Frederiksen <[email protected]> Thu, 23 Apr 2009 11:43:12 +0200
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
WO reads a HTTP-request with header 'accept-language =
("no,da-DK;q=0.3")' and enterprets the languages Norwegian and Danish.
A call to request.browserLanguages() gives '("Norwegian", "Danish")'.

WO reads a HTTP-request with header 'accept-language =
("nn-NO,nb-NO;q=0.7,da-DK;q=0.3")' and interprets the languages as
Danish only. A call to request.browserLanguages() gives '("Danish")'.

'nn-NO' and 'nb-NO' are the languages Norwegian(Ny Norsk) and Norwegian(Bokmål).

Is it true that WO does not recognize 'nb-NO' as Norwegian? ... is it
possible it can learn?

For now I have a solution where i overwrite createRequest on
WOApplication and manually add 'no' to the accept-language header if I
see 'nn-NO' or 'nb-NO'.

Kind regards
Kasper