1. 1.12.x includes/locale.inc locale-languages-negotiation
  2. 1.10.x includes/locale.inc locale-languages-negotiation
  3. 1.11.x includes/locale.inc locale-languages-negotiation
  4. 1.7.x includes/locale.inc locale-languages-negotiation

Functions for language negotiation.

There are functions that provide the ability to identify the language. This behavior can be controlled by various options.

File

includes/locale.inc, line 99
Administration functions for locale.module.

Functions

Namesort descending Location Description
locale_language_from_browser includes/locale.inc Identify language from the Accept-language HTTP header we got.
locale_language_from_interface includes/locale.inc Identifies the language from the current interface language.
locale_language_from_session includes/locale.inc Identify language from a request/session parameter.
locale_language_from_url includes/locale.inc Identify language via URL prefix or domain.
locale_language_from_user includes/locale.inc Identify language from the user preferences.
locale_language_negotiation_url_domains includes/locale.inc Reads language domains.
locale_language_negotiation_url_domains_save includes/locale.inc Saves the language domain settings.
locale_language_negotiation_url_prefixes includes/locale.inc Reads language prefixes and uses the langcode if no prefix is set.
locale_language_negotiation_url_prefixes_save includes/locale.inc Saves language prefix settings.
locale_language_switcher_session includes/locale.inc Return the session language switcher block.
locale_language_switcher_url includes/locale.inc Return links for the URL language switcher block.
locale_language_url_fallback includes/locale.inc Determines the language to be assigned to URLs when none is detected.
locale_language_url_rewrite_session includes/locale.inc Rewrite URLs for the Session language provider.
locale_language_url_rewrite_url includes/locale.inc Rewrite URLs for the URL language provider.