The language is set based on the user language settings.

File

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

Code

define('LANGUAGE_NEGOTIATION_USER', 'locale-user')