W3cubDocs

/Drupal 8

function locale_translation_use_remote_source

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.

File

core/modules/locale/locale.module, line 1018
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;
}

© 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