Deprecated - main - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
locale_translate_batch_refresh core/modules/locale/locale.bulk.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleImportBatch::class)->batchRefresh() instead.

function
locale_translate_delete_translation_files core/modules/locale/locale.bulk.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleFileManager::class) ->deleteTranslationFiles($projects, $langcodes) instead.

function
locale_translate_file_attach_properties core/modules/locale/locale.bulk.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use LocaleFile::createFromPath($filename, $uri, $langCodeOverride) instead.

function
locale_translate_file_create core/modules/locale/locale.bulk.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use LocaleFile instead.

function
locale_translate_get_interface_translation_files core/modules/locale/locale.bulk.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleFileManager::class) ->getInterfaceTranslationFiles($projects, $langcodes) instead.

function
locale_translation_batch_fetch_build core/modules/locale/locale.fetch.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleFetch::class) ->buildFetchBatch($projects, $langcodes, $options) instead.

function
locale_translation_batch_fetch_download core/modules/locale/locale.batch.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleFetch::class)->batchDownload() instead.

function
locale_translation_batch_fetch_finished core/modules/locale/locale.batch.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleFetch::class)->batchFinished() instead.

function
locale_translation_batch_fetch_import core/modules/locale/locale.batch.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleFetch::class)->batchImport() instead.

function
locale_translation_batch_status_build core/modules/locale/locale.compare.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleProjectChecker::class)->triggerBatch() instead, this now calls batch_set immediately instead of returning the array.

function
locale_translation_batch_status_check core/modules/locale/locale.batch.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleFetch::class)->batchStatusCheck() instead.

function
locale_translation_batch_status_finished core/modules/locale/locale.batch.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleProjectChecker::class)->batchFinished() instead.

function
locale_translation_batch_update_build core/modules/locale/locale.fetch.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleFetch::class) ->buildUpdateBatch($projects, $langcodes, $options) instead.

function
locale_translation_batch_version_check core/modules/locale/locale.batch.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleFetch::class)->batchVersionCheck() instead.

function
locale_translation_build_projects core/modules/locale/locale.compare.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleProjectRepository::class)->buildProjects() instead.

function
locale_translation_build_server_pattern core/modules/locale/locale.translation.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class) ->buildServerPattern($project, $template) instead.

function
locale_translation_build_sources core/modules/locale/locale.translation.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class) ->sourceBuild($project, $langcode) instead.

function
locale_translation_check_projects core/modules/locale/locale.compare.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleProjectChecker::class)->checkProjects() instead.

function
locale_translation_check_projects_batch core/modules/locale/locale.compare.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleProjectChecker::class)->triggerBatch() instead.

function
locale_translation_check_projects_local core/modules/locale/locale.compare.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleProjectChecker::class)->checkLocalProjects() instead.

function
locale_translation_clear_cache_projects core/modules/locale/locale.translation.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service('cache.memory')->delete('locale_get_projects') instead.

function
locale_translation_clear_status core/modules/locale/locale.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class)->clearSources() instead.

function
LOCALE_TRANSLATION_CURRENT core/modules/locale/locale.module

in drupal:11.5.0 and is removed from drupal:13.0.0. Use SourceType::Current->value instead.

constant
locale_translation_default_translation_server core/modules/locale/locale.compare.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. There is not replacement.

function
locale_translation_download_source core/modules/locale/locale.batch.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleFileManager::class) ->downloadTranslationSource($source_file, $directory) instead.

function
locale_translation_file_history_delete core/modules/locale/locale.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(CurrentImportStorage::class)->delete() instead.

function
locale_translation_flush_projects core/modules/locale/locale.compare.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleProjectRepository::class)->deleteAll() instead.

function
locale_translation_get_file_history core/modules/locale/locale.module

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no direct replacement use \Drupal::service(CurrentImportStorage::class)->get() with the project and langcode instead.

function
locale_translation_get_projects core/modules/locale/locale.translation.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleProjectRepository::class) ->getAll() or \Drupal::service(LocaleProjectRepository::class) ->getMultiple($project_names)instead.

function 1
locale_translation_get_status core/modules/locale/locale.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class)->loadSources() instead.

function
locale_translation_http_check core/modules/locale/locale.batch.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleFileManager::class)checkRemoteFileStatus($uri) instead.

function
locale_translation_language_table core/modules/locale/locale.module

in drupal:11.5.0 and is removed from drupal:13.0.0. There is no replacement.

function
locale_translation_load_sources core/modules/locale/locale.translation.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class) ->loadSources($projects, $langcodes) instead.

function
LOCALE_TRANSLATION_LOCAL core/modules/locale/locale.module

in drupal:11.5.0 and is removed from drupal:13.0.0. Use SourceType::Local->value instead.

constant
LOCALE_TRANSLATION_OVERWRITE_ALL core/modules/locale/locale.module

in drupal:11.5.0 and is removed from drupal:13.0.0. Use Overwrite::All->value instead.

constant
LOCALE_TRANSLATION_OVERWRITE_NONE core/modules/locale/locale.module

in drupal:11.5.0 and is removed from drupal:13.0.0. Use Overwrite::None->value instead.

constant
LOCALE_TRANSLATION_OVERWRITE_NON_CUSTOMIZED core/modules/locale/locale.module

in drupal:11.5.0 and is removed from drupal:13.0.0. Use Overwrite::NonCustomized->value instead.

constant
locale_translation_project_list core/modules/locale/locale.compare.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement.

function
LOCALE_TRANSLATION_REMOTE core/modules/locale/locale.module

in drupal:11.5.0 and is removed from drupal:13.0.0. Use SourceType::Remote->value instead.

constant
locale_translation_source_build core/modules/locale/locale.translation.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class) ->sourceBuild($project, $langcode, $filename) instead.

function
locale_translation_source_check_file core/modules/locale/locale.translation.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class)->sourceCheckFile($source) instead.

function
LOCALE_TRANSLATION_SOURCE_COMPARE_EQ core/modules/locale/locale.translation.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement.

constant
LOCALE_TRANSLATION_SOURCE_COMPARE_GT core/modules/locale/locale.translation.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement.

constant
LOCALE_TRANSLATION_SOURCE_COMPARE_LT core/modules/locale/locale.translation.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement.

constant
locale_translation_status_delete_languages core/modules/locale/locale.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class)->deleteSourcesByLanguage() instead.

function
locale_translation_status_delete_projects core/modules/locale/locale.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class)->deleteSources() instead.

function
locale_translation_status_save core/modules/locale/locale.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class)->saveSource() instead.

function
LOCALE_TRANSLATION_STATUS_TTL core/modules/locale/locale.module

in drupal:11.5.0 and is removed from drupal:13.0.0. There is no replacement.

constant
locale_translation_update_file_history core/modules/locale/locale.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(CurrentImportStorage::class)->save() instead.

function
locale_translation_use_remote_source core/modules/locale/locale.module

in drupal:11.5.0 and is removed from drupal:13.0.0. There is no replacement.

function 1

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.