wwRequest::GetLocale

Returns the currently active language in the browser if available.

The value is returned from the ACCEPT_LANGUAGES header and this method returns the first value in this list. The format of this value is in standard Locale-SubLocale format. Here are some examples:

en-us en-gb de-de de-at de-ch

o.GetLocale(@laLanguages)

Language ID. If no language can be found en-us is returned.

Parameters

@laLanguages
An optional array passed in by reference that receives all the available languages.

Remarks

This method return en-us if no language definition could be found. The optional array is filled with this value as well.

See also

Class wwrequest

© West Wind Technologies, 2025 • Updated: 2025-03-12
Comment or report problem with topic