Functions - Drupal 11.1.x - Drupal Core
Primary tabs
Title | Deprecated | File name | Summary | Direct uses | Strings |
---|---|---|---|---|---|
locale_config_batch_refresh_name | in drupal:11.1.0 and is removed from drupal:12.0.0. Use locale_config_batch_update_config_translations($names, $langcodes, $context) instead. |
core/ |
Implements callback_batch_operation(). | ||
locale_config_batch_set_config_langcodes | in drupal:11.1.0 and is removed from drupal:12.0.0. Use locale_config_batch_update_default_config_langcodes(&$context) instead. |
core/ |
Implements callback_batch_operation(). | ||
locale_config_batch_update_components | core/ |
Builds a locale batch to refresh configuration. | 5 | ||
locale_config_batch_update_config_translations | core/ |
Implements callback_batch_operation(). | 1 | 1 | |
locale_config_batch_update_default_config_langcodes | core/ |
Implements callback_batch_operation(). | 1 | 1 | |
locale_cron_fill_queue | core/ |
Populate a queue with project to check for translation updates. | 1 | ||
locale_form_language_admin_add_form_alter_submit | core/ |
Form submission handler for language_admin_add_form(). | 1 | ||
locale_form_language_admin_edit_form_alter_submit | core/ |
Form submission handler for language_admin_edit_form(). | 1 | ||
locale_get_plural | core/ |
Returns plural form index for a specific number. | 1 | 1 | |
locale_install | core/ |
Implements hook_install(). | |||
locale_is_translatable | core/ |
Checks whether $langcode is a language supported as a locale target. | 8 | ||
locale_js_translate | core/ |
Returns a list of translation files given a list of JavaScript files. | 1 | ||
locale_preprocess_node | core/ |
Implements hook_preprocess_HOOK() for node templates. | |||
locale_removed_post_updates | core/ |
Implements hook_removed_post_updates(). | |||
locale_requirements | core/ |
Implements hook_requirements(). | |||
locale_schema | core/ |
Implements hook_schema(). | |||
locale_string_is_safe | core/ |
Check that a string is safe to be added or imported as a translation. | 2 | ||
locale_system_file_system_settings_submit | core/ |
Submit handler for the file system settings form. | 1 | ||
locale_system_remove | core/ |
Delete translation history of modules and themes. | 2 | ||
locale_system_set_config_langcodes | core/ |
Updates default configuration when new modules or themes are installed. | |||
locale_system_update | core/ |
Imports translations when new modules or themes are installed. | 2 | ||
locale_translatable_language_list | core/ |
Returns list of translatable languages. | 14 | ||
locale_translate_batch_build | core/ |
Build a locale batch from an array of files. | 2 | ||
locale_translate_batch_finished | core/ |
Implements callback_batch_finished(). | 1 | 1 | |
locale_translate_batch_import | core/ |
Implements callback_batch_operation(). | 1 | 1 | |
locale_translate_batch_import_files | core/ |
Prepare a batch to import all translations. | |||
locale_translate_batch_import_save | core/ |
Implements callback_batch_operation(). | 1 | ||
locale_translate_batch_refresh | core/ |
Implements callback_batch_operation(). | 1 | ||
locale_translate_delete_translation_files | core/ |
Deletes interface translation files and translation history records. | 3 | ||
locale_translate_file_attach_properties | core/ |
Generates file properties from filename and options. | 2 | ||
locale_translate_file_create | core/ |
Creates a file object and populates the timestamp property. | |||
locale_translate_get_interface_translation_files | core/ |
Get interface translation files present in the translations directory. | 3 | ||
locale_translation_batch_fetch_build | core/ |
Builds a batch to download and import project translations. | 1 | ||
locale_translation_batch_fetch_download | core/ |
Implements callback_batch_operation(). | 2 | ||
locale_translation_batch_fetch_finished | core/ |
Implements callback_batch_finished(). | 3 | ||
locale_translation_batch_fetch_import | core/ |
Implements callback_batch_operation(). | 2 | ||
locale_translation_batch_status_build | core/ |
Builds a batch to get the status of remote and local translation files. | 1 | ||
locale_translation_batch_status_check | core/ |
Implements callback_batch_operation(). | 1 | ||
locale_translation_batch_status_finished | core/ |
Implements callback_batch_finished(). | 1 | ||
locale_translation_batch_update_build | core/ |
Builds a batch to check, download and import project translations. | 5 | ||
locale_translation_batch_version_check | core/ |
Implements callback_batch_operation(). | 1 | ||
locale_translation_build_projects | core/ |
Builds list of projects and stores the result in the database. | 4 | ||
locale_translation_build_server_pattern | core/ |
Build path to translation source, out of a server path replacement pattern. | 1 | ||
locale_translation_build_sources | core/ |
Build translation sources. | 1 | ||
locale_translation_check_projects | core/ |
Check for the latest release of project translations. | 1 | ||
locale_translation_check_projects_batch | core/ |
Gets and stores the status and timestamp of remote po files. | 1 | ||
locale_translation_check_projects_local | core/ |
Check and store the status and timestamp of local po files. | 2 | ||
locale_translation_clear_cache_projects | core/ |
Clears the projects cache. | 2 | ||
locale_translation_clear_status | core/ |
Clear the translation status cache. | 3 | ||
locale_translation_default_translation_server | core/ |
Retrieve data for default server. | 1 |