From 5b8b764f5bdfcd8fbc7c760149f08d9b94244a38 Mon Sep 17 00:00:00 2001
From: Kornel Lugosi <coornail@gmail.com>
Date: Sat, 28 May 2011 15:20:13 +0200
Subject: [PATCH] Fix invalid lowercase first in comment links

---
 modules/comment/comment.module |   12 ++++++------
 modules/comment/comment.test   |    4 ++--
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 4a73755..b4f8164 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1025,23 +1025,23 @@ function comment_links($comment, $node) {
   if ($node->comment == COMMENT_NODE_OPEN) {
     if (user_access('administer comments') && user_access('post comments')) {
       $links['comment-delete'] = array(
-        'title' => t('delete'),
+        'title' => t('Delete'),
         'href' => "comment/$comment->cid/delete",
         'html' => TRUE,
       );
       $links['comment-edit'] = array(
-        'title' => t('edit'),
+        'title' => t('Edit'),
         'href' => "comment/$comment->cid/edit",
         'html' => TRUE,
       );
       $links['comment-reply'] = array(
-        'title' => t('reply'),
+        'title' => t('Reply'),
         'href' => "comment/reply/$comment->nid/$comment->cid",
         'html' => TRUE,
       );
       if ($comment->status == COMMENT_NOT_PUBLISHED) {
         $links['comment-approve'] = array(
-          'title' => t('approve'),
+          'title' => t('Approve'),
           'href' => "comment/$comment->cid/approve",
           'html' => TRUE,
           'query' => array('token' => drupal_get_token("comment/$comment->cid/approve")),
@@ -1051,13 +1051,13 @@ function comment_links($comment, $node) {
     elseif (user_access('post comments')) {
       if (comment_access('edit', $comment)) {
         $links['comment-edit'] = array(
-          'title' => t('edit'),
+          'title' => t('Edit'),
           'href' => "comment/$comment->cid/edit",
           'html' => TRUE,
         );
       }
       $links['comment-reply'] = array(
-        'title' => t('reply'),
+        'title' => t('Reply'),
         'href' => "comment/reply/$comment->nid/$comment->cid",
         'html' => TRUE,
       );
diff --git a/modules/comment/comment.test b/modules/comment/comment.test
index 770e01d..3dacc35 100644
--- a/modules/comment/comment.test
+++ b/modules/comment/comment.test
@@ -1,7 +1,7 @@
 <?php
 
 /**
- * @file 
+ * @file
  * Tests for comment.module.
  */
 
@@ -1480,7 +1480,7 @@ class CommentApprovalTest extends CommentHelperCase {
     $this->drupalGet('comment/1/approve', array('query' => array('token' => 'forged')));
     $this->assertResponse(403, t('Forged comment approval was denied.'));
     $this->drupalGet('node/' . $this->node->nid);
-    $this->clickLink(t('approve'));
+    $this->clickLink(t('Approve'));
     $this->drupalLogout();
 
     $this->drupalGet('node/' . $this->node->nid);
-- 
1.7.4.1

