The language is determined using a URL language indicator: path prefix or domain according to the configuration.

File

core/includes/locale.inc, line 11
Administration functions for locale.module.

Code

define('LANGUAGE_NEGOTIATION_URL', 'locale-url')