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;
}
doc_Drupal
2016-10-29 09:24:29
Comments
Leave a Comment

Please login to continue.