Kasper Frederiksen
2009-04-23 09:43:12 UTC
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
("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