Versions Compared

Key

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

...

Site locale

The setting of a site locale influences the editorial content and template labels and unless a public user registers to a web product/service and actively provides the locale information to the webapp, the webserver has to rely on other means that could help identify the visitors preferred locale. There are a number of ways of obtaining some form of locale information. Some of them use advanced techniques such as geolocation based on ping delay or topology, but one of the most common way is to look into the content of HTTP headers that request a web page from the public instance. At least the following three headers are relevant to the locale identification:

  • User-Agent
  • Accept-Language
  • Path

The first one 

Determining the locale for a site

...