locale_translation_use_remote_source()
Checks whether remote translation sources are used.
bool Returns TRUE if remote translations sources should be taken into account when checking or importing translation files, FALSE otherwise.
function locale_translation_use_remote_source() { return \Drupal::config('locale.settings')->get('translation.use_source') == LOCALE_TRANSLATION_USE_SOURCE_REMOTE_AND_LOCAL; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!locale!locale.module/function/locale_translation_use_remote_source/8.1.x