From 5834887ffcf8b0fd112d2054a134f16174f14bdf Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Thu, 1 Mar 2012 02:13:36 +0900 Subject: [PATCH] Issue #1418008 by timmillwood: Added change 'reads' to 'views'. --- core/modules/statistics/statistics.module | 2 +- core/modules/statistics/statistics.test | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/modules/statistics/statistics.module b/core/modules/statistics/statistics.module index eda808faaac6..969a4f4f82d5 100644 --- a/core/modules/statistics/statistics.module +++ b/core/modules/statistics/statistics.module @@ -119,7 +119,7 @@ function statistics_node_view($node, $view_mode) { if (user_access('view post access counter')) { $statistics = statistics_get($node->nid); if ($statistics) { - $links['statistics_counter']['title'] = format_plural($statistics['totalcount'], '1 read', '@count reads'); + $links['statistics_counter']['title'] = format_plural($statistics['totalcount'], '1 view', '@count views'); $node->content['links']['statistics'] = array( '#theme' => 'links__node__statistics', '#links' => $links, diff --git a/core/modules/statistics/statistics.test b/core/modules/statistics/statistics.test index 125ae6e94efb..e3ae35c1ecbf 100644 --- a/core/modules/statistics/statistics.test +++ b/core/modules/statistics/statistics.test @@ -327,12 +327,12 @@ class StatisticsAdminTestCase extends DrupalWebTestCase { $this->assertText('node/1', t('Test node found.')); // Hit the node again (the counter is incremented after the hit, so - // "1 read" will actually be shown when the node is hit the second time). + // "1 view" will actually be shown when the node is hit the second time). $this->drupalGet('node/' . $this->test_node->nid); - $this->assertText('1 read', t('Node is read once.')); + $this->assertText('1 view', t('Node is viewed once.')); $this->drupalGet('node/' . $this->test_node->nid); - $this->assertText('2 reads', t('Node is read 2 times.')); + $this->assertText('2 views', t('Node is viewed 2 times.')); } /** @@ -398,7 +398,7 @@ class StatisticsAdminTestCase extends DrupalWebTestCase { $this->drupalGet('node/' . $this->test_node->nid); $this->drupalGet('node/' . $this->test_node->nid); - $this->assertText('1 read', t('Node is read once.')); + $this->assertText('1 view', t('Node is viewed once.')); $this->drupalGet('admin/reports/pages'); $this->assertText('node/' . $this->test_node->nid, t('Hit URL found.')); -- GitLab