Language negotiation options
- 7.x drupal-7.x/includes/locale.inc locale-languages-negotiation
- 6.x drupal-6.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
- drupal-7.x/
includes/ locale.inc, line 99 - Administration functions for locale.module.
Functions
Name | Location | Description |
---|---|---|
locale_language_from_browser |
drupal-7.x/ |
Identify language from the Accept-language HTTP header we got. |
locale_language_from_interface |
drupal-7.x/ |
Identifies the language from the current interface language. |
locale_language_from_session |
drupal-7.x/ |
Identify language from a request/session parameter. |
locale_language_from_url |
drupal-7.x/ |
Identify language via URL prefix or domain. |
locale_language_from_user |
drupal-7.x/ |
Identify language from the user preferences. |
locale_language_switcher_session |
drupal-7.x/ |
Return the session language switcher block. |
locale_language_switcher_url |
drupal-7.x/ |
Return the URL language switcher block. Translation links may be provided by other modules. |
locale_language_url_fallback |
drupal-7.x/ |
Determines the language to be assigned to URLs when none is detected. |
locale_language_url_rewrite_session |
drupal-7.x/ |
Rewrite URLs for the Session language provider. |
locale_language_url_rewrite_url |
drupal-7.x/ |
Rewrite URLs for the URL language provider. |