If you set CiLocale in your .idq files, you can override the locale sent from a browser. The web browser sends its locale through the HTTP_ACCEPT_LANGUAGE parameter. To find a list of recognized locale codes, see Valid Locale Identifiers.
Instead of overriding the locale sent by a browser, you may want to use the locale sent by a browser that is querying text in variety of languages. For example, given a single HTML page, one query could be for German text (CiLocale=De) and another could be for Spanish text (CiLocale=Es). If CiLocale is not found in the .idq file the locale sent by the web browser is used. If no locale is sent from the browser, Index Server uses the locale of the Web server.
The following table show examples of three types of settings. Each setting specifies a different source from which the value of CiLocale value is taken:
CiLocale Setting in .Idq | Value Source |
---|---|
CiLocale=En-US | Web site (set in the .idq file) |
CiLocale=%CiLocale% | HTML page (set in the query form) |
CiLocale= | Web browser (from HTTP_ACCEPT_LANGUAGE) |