function locale_translation_use_remote_source in Drupal 8
Same name and namespace in other branches
- 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.
5 calls to locale_translation_use_remote_source()
- install_import_translations in core/
includes/ install.core.inc - Imports languages via a batch process during installation.
- locale_translation_check_projects in core/
modules/ locale/ locale.compare.inc - Check for the latest release of project translations.
- TranslationStatusForm::createInfoString in core/
modules/ locale/ src/ Form/ TranslationStatusForm.php - Provides debug info for projects in case translation files are not found.
- _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 1009 - 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;
}