diff --git a/core/modules/system/lib/Drupal/system/Form/ModulesListForm.php b/core/modules/system/lib/Drupal/system/Form/ModulesListForm.php index 7b3928b..d2edcc7 100644 --- a/core/modules/system/lib/Drupal/system/Form/ModulesListForm.php +++ b/core/modules/system/lib/Drupal/system/Form/ModulesListForm.php @@ -203,8 +203,16 @@ protected function buildRow(array $modules, $module, $distribution) { '#type' => 'link', '#title' => $this->t('Help'), '#href' => "admin/help/$module->name", - '#options' => array('attributes' => array('class' => array('module-link', 'module-link-help'), 'title' => $this->t('Help'))), - ); + '#options' => array( + 'attributes' => array( + 'id' => 'edit-modules-core-'.$module->name.'-links-help', + 'class' => array( + 'module-link', + 'module-link-help'), + 'title' => $this->t('Help') + ) + ), + ); } } @@ -364,13 +372,13 @@ protected function buildRow(array $modules, $module, $distribution) { if ($module->info['version'] || $row['#requires'] || $row['#required_by']) { $description .= '
'; if ($module->info['version']) { - $description .= '
' . t('Version: !module-version', array('!module-version' => $module->info['version'])) . '
'; + $description .= '
' . $this->t('Version: !module-version', array('!module-version' => $module->info['version'])) . '
'; } if ($row['#requires']) { - $description .= '
' . t('Requires: !module-list', array('!module-list' => implode(', ', $row['#requires']))) . '
'; + $description .= '
' . $this->t('Requires: !module-list', array('!module-list' => implode(', ', $row['#requires']))) . '
'; } if ($row['#required_by']) { - $description .= '
' . t('Required by: !module-list', array('!module-list' => implode(', ', $row['#required_by']))) . '
'; + $description .= '
' . $this->t('Required by: !module-list', array('!module-list' => implode(', ', $row['#required_by']))) . '
'; } $description .= '
'; } @@ -388,7 +396,7 @@ protected function buildRow(array $modules, $module, $distribution) { $row['description'] = array( '#type' => 'details', - '#title' => ' ' . t($module->info['description']) . '', + '#title' => ' ' . $this->t($module->info['description']) . '', '#attributes' => array('id' => $id . '-description'), '#description' => $description, '#collapsed' => TRUE, diff --git a/core/modules/system/lib/Drupal/system/Form/ModulesUninstallForm.php b/core/modules/system/lib/Drupal/system/Form/ModulesUninstallForm.php index c889b24..56596a1 100644 --- a/core/modules/system/lib/Drupal/system/Form/ModulesUninstallForm.php +++ b/core/modules/system/lib/Drupal/system/Form/ModulesUninstallForm.php @@ -99,7 +99,7 @@ public function buildForm(array $form, array &$form_state) { 'specifier' => 'description', ), ), - '#empty' => t('There are no items yet. Disable a module', array( + '#empty' => $this->t('There are no items yet. Disable a module', array( '@add-url' => url('admin/modules'), )), '#tableselect' => TRUE,