Same name and namespace in other branches
  1. 8.9.x core/modules/locale/locale.module \locale_translation_use_remote_source()
  2. 9 core/modules/locale/locale.module \locale_translation_use_remote_source()

Checks whether remote translation sources are used.

Return value

bool Returns TRUE if remote translations sources should be taken into account when checking or importing translation files, FALSE otherwise.

3 calls to locale_translation_use_remote_source()
locale_translation_check_projects in core/modules/locale/locale.compare.inc
Check for the latest release of project translations.
_locale_translation_default_update_options in core/modules/locale/locale.translation.inc
Returns default import options for translation update.
_locale_translation_fetch_operations in core/modules/locale/locale.fetch.inc
Helper function to construct the batch operations to fetch translations.

File

core/modules/locale/locale.module, line 972
Enables the translation of the user interface to languages other than English.

Code

function locale_translation_use_remote_source() {
  return \Drupal::config('locale.settings')
    ->get('translation.use_source') == LOCALE_TRANSLATION_USE_SOURCE_REMOTE_AND_LOCAL;
}