Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • the User-Agent header
  • the Accept-Language header
  • Request-URI

From the User-Agent header

While occassionally containing information such as en_US , for example in 

...

Magnolia has no direct means how to check for the existence of and retrieve this type of locale information. The preferred locale information is communicated via the Accept-Language header.

From the Accept-Language header

The Public instance delivers the final page to a page visitor, and tries to deliver it in a way that fulfills the content of the HTTP request for the page. A part of the HTTP request's header defines which languages the visitor (client) is able to understand, and which locale variant of the page is preferred. The part that does this is the Accept-Language request header and may take one of the following three forms:

...

The first represents language expressed as a 2 or 3-character string, the second represents language as a full language tag, the third says "any language" (see Accept-Language and Language Tags in RFC-2616).

From Request-URI


Configuring site locale