diff --git a/core/modules/content_translation/content_translation.module b/core/modules/content_translation/content_translation.module index f978a1a..50b3eca 100644 --- a/core/modules/content_translation/content_translation.module +++ b/core/modules/content_translation/content_translation.module @@ -135,7 +135,7 @@ function content_translation_entity_operation_alter(array &$operations, \Drupal\ if ($entity instanceof NodeInterface && $entity->isTranslatable()) { $uri = $entity->uri(); $operations['translate'] = array( - 'title' => $this->t('Translate'), + 'title' => t('Translate'), 'href' => $uri['path'] . '/translations', 'options' => $uri['options'], ); diff --git a/core/modules/node/lib/Drupal/node/NodeListController.php b/core/modules/node/lib/Drupal/node/NodeListController.php index 92b5fc1..f7770d5 100644 --- a/core/modules/node/lib/Drupal/node/NodeListController.php +++ b/core/modules/node/lib/Drupal/node/NodeListController.php @@ -82,11 +82,14 @@ public function buildHeader() { 'status' => $this->t('Status'), 'changed' => array( 'data' => $this->t('Updated'), - 'class' => array(RESPONSIVE_PRIORITY_LOW) + 'class' => array(RESPONSIVE_PRIORITY_LOW), ), ); if (language_multilingual()) { - $header['language_name'] = array('data' => $this->t('Language'), 'class' => array(RESPONSIVE_PRIORITY_LOW)); + $header['language_name'] = array( + 'data' => $this->t('Language'), + 'class' => array(RESPONSIVE_PRIORITY_LOW), + ); } return $header + parent::buildHeader(); } @@ -131,7 +134,6 @@ public function getOperations(EntityInterface $entity) { $destination = drupal_get_destination(); foreach ($operations as $key => $operation) { $operations[$key]['query'] = $destination; - } return $operations; }