Process flow for multi-locale support

The following example process flow illustrates how WebSEAL evaluates the Accept-Language header:

  1. The Accept-Language header contains pt-br as the first value in the list.
  2. The pt-br language is converted to pt_BR, representing the WebSEAL language subdirectory for this language.

  3. If this subdirectory does not exist for the required message (for example, no language pack is installed for this language), WebSEAL checks for a pt directory.

  4. If no pt directory exists, WebSEAL attempts to find message subdirectories for the next language listed in the header.

  5. If there are no installed language packs for all languages listed in the header, WebSEAL defaults to the language environment that WebSEAL is running in, as determined by the LC_ALL or LANG environment variables set in the operating system's environment when WebSEAL is started.

Parent topic: Multi-locale support for server responses