Add language handling functionality and enables the translation of the user interface to languages other than English.

When enabled, multiple languages can be set up. The site interface can be displayed in different languages, as well as nodes can have languages assigned. The setup of languages and translations is completely web based. Gettext portable object files are supported.

File

core/modules/locale/locale.module

Functions

Namesort ascending Description
_locale_get_config_translatables Get translatable config strings.
locale_views_api Implements hook_views_api().
locale_url_outbound_alter Implements hook_url_outbound_alter().
locale_translate_english Utility function to tell if locale translates to English.
locale_themes_enabled Implements hook_themes_enabled().
locale_theme Implements hook_theme().
locale_system_update Imports translations when new modules or themes are installed.
locale_reset Reset static variables used by locale().
locale_preprocess_node Implements MODULE_preprocess_HOOK().
locale_preprocess_block Implements hook_preprocess_block().
locale_permission Implements hook_permission().
locale_modules_installed Implements hook_modules_installed().
locale_menu Implements hook_menu().
locale_library_info_alter Implement hook_library_info_alter().
locale_language_update Implements hook_language_update().
locale_language_types_info Implements hook_language_types_info().
locale_language_selector_form Form builder callback to display language selection widget.
locale_language_negotiation_info Implements hook_language_negotiation_info().
locale_language_insert Implements hook_language_insert().
locale_language_delete Implements hook_language_delete().
locale_js_alter Implements hook_js_alter().
locale_get_plural Returns plural form index for a specific number.
locale_form_node_form_alter Implements hook_form_BASE_FORM_ID_alter().
locale_form_language_admin_overview_form_alter Implements hook_form_FORM_ID_alter() for language_admin_overview_form().
locale_form_language_admin_edit_form_alter_submit Submission handler to record our custom setting.
locale_form_language_admin_edit_form_alter Implements hook_form_FORM_ID_alter() for language_admin_edit_form().
locale_form_language_admin_add_form_alter_submit Set a batch for newly added language.
locale_form_language_admin_add_form_alter Implements hook_form_FORM_ID_alter() for language_admin_add_form(().
locale_form_alter Implements hook_form_alter().
locale_field_node_form_submit Form submit handler for node_form().
locale_field_language_fallback Applies language fallback rules to the fields attached to the given entity.
locale_field_language_alter Implements hook_field_language_alter().
locale_entity_info_alter Implements hook_entity_info_alter().
locale_config_update Implements hook_config_update().
locale_config_info Implements hook_config_info().
locale_config_create Implements hook_config_create().
locale_block_view Implements hook_block_view().
locale_block_info Implements hook_block_info().
locale_autoload_info Implements hook_autoload_info().
locale Provides interface translation services.