function locale_translation_use_remote_source
Same name and namespace in other branches
- 10 core/modules/locale/locale.module \locale_translation_use_remote_source()
- 11.x core/modules/locale/locale.module \locale_translation_use_remote_source()
- 9 core/modules/locale/locale.module \locale_translation_use_remote_source()
- 8.9.x 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.
Deprecated
in drupal:11.5.0 and is removed from drupal:13.0.0. There is no replacement.
See also
https://www.drupal.org/node/3616293
1 call to locale_translation_use_remote_source()
- _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 577
Code
function locale_translation_use_remote_source() {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.5.0 and is removed from drupal:13.0.0. There is no replacement. See https://www.drupal.org/node/3616293', E_USER_DEPRECATED);
return \Drupal::config('locale.settings')->get('translation.use_source') == LOCALE_TRANSLATION_USE_SOURCE_REMOTE_AND_LOCAL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.