function 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.

4 calls to locale_translation_use_remote_source()
locale_translation_check_projects in drupal/core/modules/locale/locale.compare.inc
Check for the latest release of project translations.
_locale_translation_batch_status_operations in drupal/core/modules/locale/locale.compare.inc
Helper function to construct batch operations checking remote translation status.
_locale_translation_fetch_operations in drupal/core/modules/locale/locale.fetch.inc
Helper function to construct the batch operations to fetch translations.
_locale_translation_status_debug_info in drupal/core/modules/locale/locale.pages.inc
Provides debug info for projects in case translation files are not found.

File

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

Code

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