locale_language_types_info |
function |
drupal/modules/locale/locale.module |
Implements hook_language_types_info(). |
locale_languages_edit_form |
function |
drupal/modules/locale/locale.admin.inc |
Editing screen for a particular language. |
language_types_configurable |
function |
drupal/includes/language.inc |
Returns only the configurable language types. |
locale_field_language_alter |
function |
drupal/modules/locale/locale.module |
Implements hook_field_language_alter(). |
PathLanguageTestCase::setUp |
function |
drupal/modules/path/path.test |
Sets up a Drupal site for running functional and integration tests. |
locale_languages_add_screen |
function |
drupal/modules/locale/locale.admin.inc |
User interface for the language addition screen. |
Language negotiation options |
group |
drupal/includes/locale.inc |
Functions for language negotiation. |
locale_language_from_browser |
function |
drupal/includes/locale.inc |
Identify language from the Accept-language HTTP header we got. |
locale_language_from_session |
function |
drupal/includes/locale.inc |
Identify language from a request/session parameter. |
locale_language_url_fallback |
function |
drupal/includes/locale.inc |
Determines the language to be assigned to URLs when none is detected. |
locale_language_switcher_url |
function |
drupal/includes/locale.inc |
Return the URL language switcher block. Translation links may be provided by
other modules. |
List of predefined languages |
group |
drupal/includes/locale.inc |
API to provide a list of predefined languages. |
LANGUAGE_NEGOTIATION_DEFAULT |
constant |
drupal/includes/language.inc |
No language negotiation. The default language is used. |
language_negotiation_get_any |
function |
drupal/includes/language.inc |
Checks if the language negotiation provider is enabled for any language type. |
locale_languages_custom_form |
function |
drupal/modules/locale/locale.admin.inc |
Custom language addition form. |
locale_languages_delete_form |
function |
drupal/modules/locale/locale.admin.inc |
User interface for the language deletion confirmation screen. |
callback_entity_info_language |
function |
drupal/modules/system/system.api.php |
Return the language code of the entity. |
SearchLanguageTestCase::setUp |
function |
drupal/modules/search/search.test |
Implementation setUp(). |
locale_language_selector_form |
function |
drupal/modules/locale/locale.module |
Form builder callback to display language selection widget. |
locale_test_language_provider |
function |
drupal/modules/locale/tests/locale_test.module |
Test language provider. |
PathLanguageTestCase::getInfo |
function |
drupal/modules/path/path.test |
|
PathLanguageUITestCase::setUp |
function |
drupal/modules/path/path.test |
Sets up a Drupal site for running functional and integration tests. |
locale_language_from_interface |
function |
drupal/includes/locale.inc |
Identifies the language from the current interface language. |
hook_language_types_info_alter |
function |
drupal/modules/system/language.api.php |
Perform alterations on language types. |
hook_language_negotiation_info |
function |
drupal/modules/system/language.api.php |
Define language negotiation providers. |
locale_field_language_fallback |
function |
drupal/modules/locale/locale.module |
Applies language fallback rules to the fields attached to the given entity. |
locale_languages_overview_form |
function |
drupal/modules/locale/locale.admin.inc |
User interface for the language overview screen. |
locale_languages_configure_form |
function |
drupal/modules/locale/locale.admin.inc |
Setting for language negotiation options |
LOCALE_LANGUAGE_NEGOTIATION_URL |
constant |
drupal/includes/locale.inc |
The language is determined using a URL language indicator:
path prefix or domain according to the configuration. |
field_test_field_language_alter |
function |
drupal/modules/field/tests/field_test.module |
Implements hook_field_language_alter(). |
locale_language_url_rewrite_url |
function |
drupal/includes/locale.inc |
Rewrite URLs for the URL language provider. |
_locale_translate_language_list |
function |
drupal/includes/locale.inc |
List languages in search result table |
SearchLanguageTestCase::getInfo |
function |
drupal/modules/search/search.test |
|
_locale_batch_language_finished |
function |
drupal/includes/locale.inc |
Implements callback_batch_finished(). |
LocaleUILanguageNegotiationTest |
class |
drupal/modules/locale/locale.test |
Test UI language negotiation
1. URL (PATH) > DEFAULT
UI Language base on URL prefix, browser language preference has no
influence:
admin/config
UI in site default language
zh-hans/admin/config
UI in Chinese
blah-blah/admin/config
404
2. URL (PATH)… |
locale_test_language_types_info |
function |
drupal/modules/locale/tests/locale_test.module |
Implements hook_language_types_info(). |
PathLanguageUITestCase::getInfo |
function |
drupal/modules/path/path.test |
|
LOCALE_LANGUAGE_NEGOTIATION_USER |
constant |
drupal/includes/locale.inc |
The language is set based on the user language settings. |
locale_language_switcher_session |
function |
drupal/includes/locale.inc |
Return the session language switcher block. |
TranslationTestCase::addLanguage |
function |
drupal/modules/translation/translation.test |
Installs the specified language, or enables it if it is already installed. |
hook_language_switch_links_alter |
function |
drupal/modules/system/language.api.php |
Perform alterations on language switcher links. |
LocaleUserLanguageFunctionalTest |
class |
drupal/modules/locale/locale.test |
Functional tests for a user's ability to change their default language. |
language_fallback_get_candidates |
function |
drupal/includes/language.inc |
Returns the possible fallback languages ordered by language weight. |
locale_language_negotiation_info |
function |
drupal/modules/locale/locale.module |
Implements hook_language_negotiation_info(). |
locale_languages_predefined_form |
function |
drupal/modules/locale/locale.admin.inc |
Predefined language setup form. |
Language administration interface |
group |
drupal/modules/locale/locale.admin.inc |
Administration interface for languages. |
_locale_languages_common_controls |
function |
drupal/modules/locale/locale.admin.inc |
Common elements of the language addition and editing form. |
locale_languages_edit_form_submit |
function |
drupal/modules/locale/locale.admin.inc |
Process the language editing form submission. |
locale_language_providers_url_form |
function |
drupal/modules/locale/locale.admin.inc |
The URL language provider configuration form. |
locale_languages_delete_form_submit |
function |
drupal/modules/locale/locale.admin.inc |
Process language deletion submissions. |