Functions for language negotiation.
There are functions that provide the ability to identify the language. This behavior can be controlled by various options.
File
- core/
includes/ locale.inc, line 98 - Administration functions for locale.module.
Functions
Name | Location | Description |
---|---|---|
locale_language_from_browser |
core/ |
Identify language from the Accept-language HTTP header we got. |
locale_language_from_interface |
core/ |
Identifies the language from the current interface language. |
locale_language_from_session |
core/ |
Identify language from a request/session parameter. |
locale_language_from_url |
core/ |
Identify language via URL prefix or domain. |
locale_language_from_user |
core/ |
Identify language from the user preferences. |
locale_language_negotiation_url_domains |
core/ |
Reads language domains. |
locale_language_negotiation_url_domains_save |
core/ |
Saves the language domain settings. |
locale_language_negotiation_url_prefixes |
core/ |
Reads language prefixes and uses the langcode if no prefix is set. |
locale_language_negotiation_url_prefixes_save |
core/ |
Saves language prefix settings. |
locale_language_switcher_session |
core/ |
Return the session language switcher block. |
locale_language_switcher_url |
core/ |
Return links for the URL language switcher block. |
locale_language_url_fallback |
core/ |
Determines the language to be assigned to URLs when none is detected. |
locale_language_url_rewrite_session |
core/ |
Rewrite URLs for the Session language provider. |
locale_language_url_rewrite_url |
core/ |
Rewrite URLs for the URL language provider. |