_locale_translation_default_update_options

_locale_translation_default_update_options()

Returns default import options for translation update.

Return value

array Array of translation import options.

File

core/modules/locale/locale.translation.inc, line 430
Common API for interface translation.

Code

function _locale_translation_default_update_options() {
  $config = \Drupal::config('locale.settings');
  return array(
    'customized' => LOCALE_NOT_CUSTOMIZED,
    'overwrite_options' => array(
      'not_customized' => $config->get('translation.overwrite_not_customized'),
      'customized' => $config->get('translation.overwrite_customized'),
    ),
    'finish_feedback' => TRUE,
    'use_remote' => locale_translation_use_remote_source(),
  );
}
doc_Drupal
2016-10-29 09:57:16
Comments
Leave a Comment

Please login to continue.