diff --git a/core/modules/comment/comment.admin.inc b/core/modules/comment/comment.admin.inc index 7132ae23a64653b97fc96e2653604e7036daa32f..8f618e52f99a759b3036ffe7dac5866c6422c77b 100644 --- a/core/modules/comment/comment.admin.inc +++ b/core/modules/comment/comment.admin.inc @@ -154,14 +154,14 @@ function comment_admin_overview($form, &$form_state, $arg) { ); $links = array(); $links['edit'] = array( - 'title' => t('edit'), + 'title' => t('Edit'), 'route_name' => 'comment.edit_page', 'route_parameters' => array('comment' => $comment->id()), 'query' => $destination, ); if (module_invoke('content_translation', 'translate_access', $comment)) { $links['translate'] = array( - 'title' => t('translate'), + 'title' => t('Translate'), 'route_name' => 'content_translation.translation_overview_comment', 'route_parameters' => array('comment' => $comment->id()), 'query' => $destination, diff --git a/core/modules/comment/lib/Drupal/comment/CommentViewBuilder.php b/core/modules/comment/lib/Drupal/comment/CommentViewBuilder.php index d79363b611e881d2cea65ef62e509b10dfed198c..2713d52f5f59c5754f547af527c075f92b934eda 100644 --- a/core/modules/comment/lib/Drupal/comment/CommentViewBuilder.php +++ b/core/modules/comment/lib/Drupal/comment/CommentViewBuilder.php @@ -163,7 +163,7 @@ protected function buildLinks(CommentInterface $entity, EntityInterface $comment if ($status == COMMENT_OPEN) { if ($entity->access('delete')) { $links['comment-delete'] = array( - 'title' => t('delete'), + 'title' => t('Delete'), 'href' => "comment/{$entity->id()}/delete", 'html' => TRUE, ); @@ -171,21 +171,21 @@ protected function buildLinks(CommentInterface $entity, EntityInterface $comment if ($entity->access('update')) { $links['comment-edit'] = array( - 'title' => t('edit'), + 'title' => t('Edit'), 'href' => "comment/{$entity->id()}/edit", 'html' => TRUE, ); } if ($entity->access('create')) { $links['comment-reply'] = array( - 'title' => t('reply'), + 'title' => t('Reply'), 'href' => "comment/reply/{$entity->entity_type->value}/{$entity->entity_id->value}/{$entity->field_name->value}/{$entity->id()}", 'html' => TRUE, ); } if ($entity->status->value == COMMENT_NOT_PUBLISHED && $entity->access('approve')) { $links['comment-approve'] = array( - 'title' => t('approve'), + 'title' => t('Approve'), 'href' => "comment/{$entity->id()}/approve", 'html' => TRUE, 'query' => array('token' => $this->csrfToken->get("comment/{$entity->id()}/approve")), @@ -205,7 +205,7 @@ protected function buildLinks(CommentInterface $entity, EntityInterface $comment // Add translations link for translation-enabled comment bundles. if ($this->moduleHandler->moduleExists('content_translation') && content_translation_translate_access($entity)) { $links['comment-translations'] = array( - 'title' => t('translate'), + 'title' => t('Translate'), 'href' => 'comment/' . $entity->id() . '/translations', 'html' => TRUE, ); diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkApprove.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkApprove.php index ae619714eba7f3e71eb47ecfc953feafed585c63..5fd785a2dac49b38360ea74c1e7abaa663ef1689 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkApprove.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkApprove.php @@ -43,7 +43,7 @@ protected function renderLink($data, ResultRow $values) { return; } - $text = !empty($this->options['text']) ? $this->options['text'] : t('approve'); + $text = !empty($this->options['text']) ? $this->options['text'] : t('Approve'); $comment = $this->get_entity($values); $this->options['alter']['make_link'] = TRUE; diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkDelete.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkDelete.php index 34ba8ae7024d61069116eee7ddf634552ac69b62..94ff815fcc405cbb2053a334a428cd7609767958 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkDelete.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkDelete.php @@ -36,7 +36,7 @@ public function access() { * Returns a string for the link text. */ protected function renderLink($data, ResultRow $values) { - $text = !empty($this->options['text']) ? $this->options['text'] : t('delete'); + $text = !empty($this->options['text']) ? $this->options['text'] : t('Delete'); $comment = $this->getEntity($values); $this->options['alter']['make_link'] = TRUE; diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkEdit.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkEdit.php index 39ce70d8b27eeb9be314ed0e7577f3a7905c1ee1..6e78e769442f8887e50a3e07ae9610cbf4364a23 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkEdit.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkEdit.php @@ -56,7 +56,7 @@ protected function renderLink($data, ResultRow $values) { return; } - $text = !empty($this->options['text']) ? $this->options['text'] : t('edit'); + $text = !empty($this->options['text']) ? $this->options['text'] : t('Edit'); unset($this->options['alter']['fragment']); if (!empty($this->options['destination'])) { diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkReply.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkReply.php index 9b1d212f72b05f2333777511cd13374aa4ded724..f71e76fe94cc615d425d9ede7414359e1ae028d3 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkReply.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkReply.php @@ -36,7 +36,7 @@ public function access() { * Returns a string for the link text. */ protected function renderLink($data, ResultRow $values) { - $text = !empty($this->options['text']) ? $this->options['text'] : t('reply'); + $text = !empty($this->options['text']) ? $this->options['text'] : t('Reply'); $comment = $this->getEntity($values); $this->options['alter']['make_link'] = TRUE; diff --git a/core/modules/comment/lib/Drupal/comment/Tests/CommentAdminTest.php b/core/modules/comment/lib/Drupal/comment/Tests/CommentAdminTest.php index 886ef04accbfb72dfce38223dd5eac683fb1922e..a44b5c9f85b9531af392e111f9221c59a83d0336 100644 --- a/core/modules/comment/lib/Drupal/comment/Tests/CommentAdminTest.php +++ b/core/modules/comment/lib/Drupal/comment/Tests/CommentAdminTest.php @@ -137,7 +137,7 @@ function testApprovalNodeInterface() { $this->drupalGet('comment/1/approve', array('query' => array('token' => 'forged'))); $this->assertResponse(403, 'Forged comment approval was denied.'); $this->drupalGet('node/' . $this->node->id()); - $this->clickLink(t('approve')); + $this->clickLink(t('Approve')); $this->drupalLogout(); $this->drupalGet('node/' . $this->node->id());