diff --git a/core/modules/locale/locale.module b/core/modules/locale/locale.module index 3122f59..083f780 100644 --- a/core/modules/locale/locale.module +++ b/core/modules/locale/locale.module @@ -1397,7 +1397,7 @@ function locale_translation_language_table($form_element) { // Remove checkboxes of languages without updates. if ($form_element['#not_found']) { foreach ($form_element['#not_found'] as $langcode) { - $form_element[$langcode] = array(); + $form_element[$langcode]['select'] = array(); } } return $form_element; diff --git a/core/modules/locale/src/Form/TranslationStatusForm.php b/core/modules/locale/src/Form/TranslationStatusForm.php index 0b4c425..945d5c1 100644 --- a/core/modules/locale/src/Form/TranslationStatusForm.php +++ b/core/modules/locale/src/Form/TranslationStatusForm.php @@ -265,16 +265,6 @@ protected function createInfoString($project_info) { /** * {@inheritdoc} */ - public function validateForm(array &$form, FormStateInterface $form_state) { - // Check if a language has been selected. 'tableselect' doesn't. - if (!array_filter($form_state->getValue('langcodes'))) { - $form_state->setErrorByName('', $this->t('Select a language to update.')); - } - } - - /** - * {@inheritdoc} - */ public function submitForm(array &$form, FormStateInterface $form_state) { $this->moduleHandler->loadInclude('locale', 'fetch.inc'); $langcodes = array_filter($form_state->getValue('langcodes'));