Functions - main - drupal
| Title | Deprecated | File name | Summary | Direct uses | Strings |
|---|---|---|---|---|---|
| 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. | 2 | 2 | |
| 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_removed_post_updates | core/ |
Implements hook_removed_post_updates(). | |||
| 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. | 4 | ||
| 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. | 2 | ||
| locale_system_update | core/ |
Imports translations when new modules or themes are installed. | 2 | ||
| locale_test_uninstall | core/ |
Implements hook_uninstall(). | |||
| 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(). | 1 | 2 | |
| locale_translation_batch_fetch_finished | core/ |
Implements callback_batch_finished(). | 3 | ||
| locale_translation_batch_fetch_import | core/ |
Implements callback_batch_operation(). | 1 | 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(). | 3 | 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. | 6 | ||
| locale_translation_batch_version_check | core/ |
Implements callback_batch_operation(). | 1 | 1 | |
| locale_translation_build_projects | core/ |
Builds list of projects and stores the result in the database. | 6 | ||
| locale_translation_build_server_pattern | in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class) ->buildServerPattern($project, $template) instead. |
core/ |
Build path to translation source, out of a server path replacement pattern. | ||
| locale_translation_build_sources | in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class) ->buildSources($projects, $langcodes) instead. |
core/ |
Build translation sources. | ||
| 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 | in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service('locale.project')->resetCache() instead. |
core/ |
Clears the projects cache. | ||
| locale_translation_clear_status | core/ |
Clear the translation status cache. | 3 | ||
| locale_translation_default_translation_server | core/ |
Retrieve data for default server. | 1 | ||
| locale_translation_download_source | core/ |
Downloads a translation file from a remote server. | 2 | ||
| locale_translation_file_history_delete | core/ |
Deletes the history of downloaded translations. | 2 | ||
| locale_translation_flush_projects | core/ |
Clear the project data table. | 1 | ||
| locale_translation_get_file_history | core/ |
Gets current translation status from the {locale_file} table. | 5 | 4 | |
| locale_translation_get_projects | in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service('locale.project')->getProjects($project_names) instead. |
core/ |
Get array of projects which are available for interface translation. | 1 | |
| locale_translation_get_status | core/ |
Gets the current translation status. | 16 | ||
| locale_translation_http_check | core/ |
Check if remote file exists and when it was last updated. | 1 |
Pagination
- Previous page
- Page 13
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.