diff --git a/core/modules/locale/config/locale.settings.yml b/core/modules/locale/config/locale.settings.yml index ee09510..740961b 100644 --- a/core/modules/locale/config/locale.settings.yml +++ b/core/modules/locale/config/locale.settings.yml @@ -1,5 +1,5 @@ cache_strings: true -translate_english: 0 +translate_english: false javascript: directory: languages translation: diff --git a/core/modules/locale/locale.module b/core/modules/locale/locale.module index 37e5ec6..ae37daf 100644 --- a/core/modules/locale/locale.module +++ b/core/modules/locale/locale.module @@ -818,7 +818,7 @@ function locale_form_language_admin_edit_form_alter(&$form, &$form_state) { * Form submission handler for language_admin_edit_form(). */ function locale_form_language_admin_edit_form_alter_submit($form, $form_state) { - Drupal::config('locale.settings')->set('translate_english', intval($form_state['values']['locale_translate_english']))->save(); + \Drupal::config('locale.settings')->set('translate_english', intval($form_state['values']['locale_translate_english']))->save(); } /** @@ -828,7 +828,7 @@ function locale_form_language_admin_edit_form_alter_submit($form, $form_state) { * Returns TRUE if content should be translated to English, FALSE otherwise. */ function locale_translate_english() { - return Drupal::config('locale.settings')->get('translate_english'); + return \Drupal::config('locale.settings')->get('translate_english'); } /**