The language is set based on the request/session parameters.

File

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

Code

define('LANGUAGE_NEGOTIATION_SESSION', 'locale-session')