Process flow for multi-locale support
The following example process flow illustrates how WebSEAL evaluates the Accept-Language header:
- The Accept-Language header contains pt-br as the first value in the list.
- The pt-br language is converted to pt_BR, representing the WebSEAL language subdirectory for this language.
- 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.
- If no pt directory exists, WebSEAL attempts to find message subdirectories for the next language listed in the header.
- 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