End users can configure their browsers to send an Accept-language header that describes their language preference for the content they are accessing. The server can be configured to serve content based on the Accept-language header by enabling the Negotiate Client Language checkbox under Configuration > (Select Configuration) > Virtual Server >(Select Virtual Server) > Server Setting > General > Localization.
For example, if this option is enabled, and a client sends the Accept-language header with the value fr-CH,de, when requesting the following URL:
Your server searches for the file in the following order:
The Accept-language list fr-CH,de.
Language codes without the country codes (fr in the case of fr-CH):
The DefaultLanguage, such as en, defined in the magnus.conf file.
If none of these are found, the server tries:
Keep in mind when naming your localized files that country codes like CH and TW are converted to lower case and dashes (-) are converted to underscores (_).
Enabling the acceptlanguage setting has a performance penalty since the server has to check for content in every language specified in the Accept-language as per the algorithm illustrated above.