.../ckeditor/lib/Drupal/ckeditor/Plugin/Editor/CKEditor.php | 5 +++-- core/modules/locale/locale.module | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/Editor/CKEditor.php b/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/Editor/CKEditor.php index 5ca7cfa..5b37086 100644 --- a/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/Editor/CKEditor.php +++ b/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/Editor/CKEditor.php @@ -259,8 +259,9 @@ public function getJSSettings(EditorEntity $editor) { 'drupalExternalPlugins' => array_map('file_create_url', $external_plugin_files), ); - if ($this->moduleHandler()->moduleExists('locale')) { - locale_js_translate($settings['drupalExternalPlugins']); + // Parse all CKEditor plugin JavaScript files for translations. + if ($this->moduleHandler->moduleExists('locale')) { + locale_js_translate(array_values($settings['drupalExternalPlugins'])); } ksort($settings); diff --git a/core/modules/locale/locale.module b/core/modules/locale/locale.module index 128934f..b37af1f 100644 --- a/core/modules/locale/locale.module +++ b/core/modules/locale/locale.module @@ -613,7 +613,6 @@ function locale_js_alter(&$javascript) { * applicable. */ function locale_js_translate(array $files = array()) { - $language_interface = language(Language::TYPE_INTERFACE); $dir = 'public://' . Drupal::config('locale.settings')->get('javascript.directory');