Determining the locale for a request

The NlsContext.getLocale() call returns the locale that should be used. But how is that value found?

By default DomUI looks at the HttpRequest and determines the locale from its getLocale() method. This method uses the browser's preferred language setting to determine the locale, so by default DomUI uses the preferred locale as defined in the user's browser settings.

There are two ways to override the locale settings:

Currency locales