diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-23 02:45:42 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-23 02:45:42 +0000 |
commit | 7389848d699bc0d35c40db6ed0cb2d6601b06771 (patch) | |
tree | c097149e69693448dd81cbfab38ae68613ecb361 | |
parent | 2b34b7695738b56e3193cf8d650d6269d2140e3e (diff) | |
download | brdo-7389848d699bc0d35c40db6ed0cb2d6601b06771.tar.gz brdo-7389848d699bc0d35c40db6ed0cb2d6601b06771.tar.bz2 |
#637930 by yoroy and jhodgdon: Remove the word 'post' from Tracker module.
-rw-r--r-- | modules/tracker/tracker.info | 2 | ||||
-rw-r--r-- | modules/tracker/tracker.module | 16 | ||||
-rw-r--r-- | modules/tracker/tracker.pages.inc | 4 | ||||
-rw-r--r-- | modules/tracker/tracker.test | 4 |
4 files changed, 13 insertions, 13 deletions
diff --git a/modules/tracker/tracker.info b/modules/tracker/tracker.info index f70550d37..253e83fcb 100644 --- a/modules/tracker/tracker.info +++ b/modules/tracker/tracker.info @@ -1,6 +1,6 @@ ; $Id$ name = Tracker -description = Enables tracking of recent posts for users. +description = Enables tracking of recent content for users. dependencies[] = comment package = Core version = VERSION diff --git a/modules/tracker/tracker.module b/modules/tracker/tracker.module index fde5018ae..fbad485a2 100644 --- a/modules/tracker/tracker.module +++ b/modules/tracker/tracker.module @@ -3,7 +3,7 @@ /** * @file - * Enables tracking of recent posts for users. + * Enables tracking of recent content for users. */ /** @@ -13,7 +13,7 @@ function tracker_help($path, $arg) { switch ($path) { case 'admin/help#tracker': $output = '<p>' . t('The tracker module displays the most recently added or updated content on your site, and provides user-level tracking to follow the contributions of particular authors.') . '</p>'; - $output .= '<p>' . t("The <em>Recent posts</em> page is available via a link in the navigation menu block and displays new and recently-updated content (including the content type, the title, the author's name, number of comments, and time of last update) in reverse chronological order. Posts are marked updated when changes occur in the text, or when new comments are added. To use the tracker module to follow a specific user's contributions, select the <em>Track</em> tab from the user's profile page.") . '</p>'; + $output .= '<p>' . t("The <em>Recent content</em> page is available via a link in the navigation menu block and displays new and recently-updated content (including the content type, the title, the author's name, number of comments, and time of last update) in reverse chronological order. Content is marked updated when changes occur in the text, or when new comments are added. To use the tracker module to follow a specific user's contributions, select the <em>Track</em> tab from the user's profile page.") . '</p>'; $output .= '<p>' . t('For more information, see the online handbook entry for <a href="@tracker">Tracker module</a>.', array('@tracker' => 'http://drupal.org/handbook/modules/tracker/')) . '</p>'; return $output; } @@ -24,18 +24,18 @@ function tracker_help($path, $arg) { */ function tracker_menu() { $items['tracker'] = array( - 'title' => 'Recent posts', + 'title' => 'Recent content', 'page callback' => 'tracker_page', 'access arguments' => array('access content'), 'weight' => 1, 'file' => 'tracker.pages.inc', ); $items['tracker/all'] = array( - 'title' => 'All recent posts', + 'title' => 'All recent content', 'type' => MENU_DEFAULT_LOCAL_TASK, ); $items['tracker/%user_uid_optional'] = array( - 'title' => 'My recent posts', + 'title' => 'My recent content', 'page callback' => 'tracker_page', 'access callback' => '_tracker_myrecent_access', 'access arguments' => array(1), @@ -53,8 +53,8 @@ function tracker_menu() { 'type' => MENU_LOCAL_TASK, 'file' => 'tracker.pages.inc', ); - $items['user/%user/track/posts'] = array( - 'title' => 'Track posts', + $items['user/%user/track/content'] = array( + 'title' => 'Track content', 'type' => MENU_DEFAULT_LOCAL_TASK, ); @@ -144,7 +144,7 @@ function tracker_cron() { * Access callback for tracker/%user_uid_optional. */ function _tracker_myrecent_access($account) { - // This path is only allowed for authenticated users looking at their own posts. + // This path is only allowed for authenticated users looking at their own content. return $account->uid && ($GLOBALS['user']->uid == $account->uid) && user_access('access content'); } diff --git a/modules/tracker/tracker.pages.inc b/modules/tracker/tracker.pages.inc index 75faaa76b..f67597cd4 100644 --- a/modules/tracker/tracker.pages.inc +++ b/modules/tracker/tracker.pages.inc @@ -69,12 +69,12 @@ function tracker_page($account = NULL, $set_title = FALSE) { } } else { - $rows[] = array(array('data' => t('No posts available.'), 'colspan' => '5')); + $rows[] = array(array('data' => t('No content available.'), 'colspan' => '5')); } $page['tracker'] = array( '#rows' => $rows, - '#header' => array(t('Type'), t('Post'), t('Author'), t('Replies'), t('Last updated')), + '#header' => array(t('Type'), t('Title'), t('Author'), t('Replies'), t('Last updated')), '#theme' => 'table', '#attached' => array( 'css' => array(drupal_get_path('module', 'tracker') . '/tracker.css' => array('preprocess' => FALSE)), diff --git a/modules/tracker/tracker.test b/modules/tracker/tracker.test index 2e67b9860..da818909f 100644 --- a/modules/tracker/tracker.test +++ b/modules/tracker/tracker.test @@ -43,7 +43,7 @@ class TrackerTest extends DrupalWebTestCase { $this->drupalGet('tracker'); $this->assertNoText($unpublished->title[FIELD_LANGUAGE_NONE][0]['value'], t('Unpublished node do not show up in the tracker listing.')); $this->assertText($published->title[FIELD_LANGUAGE_NONE][0]['value'], t('Published node show up in the tracker listing.')); - $this->assertLink(t('My recent posts'), 0, t('User tab shows up on the global tracker page.')); + $this->assertLink(t('My recent content'), 0, t('User tab shows up on the global tracker page.')); } /** @@ -233,6 +233,6 @@ class TrackerTest extends DrupalWebTestCase { $this->drupalPost('admin/content', $edit, t('Update')); $this->drupalGet('tracker'); - $this->assertText(t('No posts available.'), t('Node is displayed on the tracker listing pages.')); + $this->assertText(t('No content available.'), t('Node is displayed on the tracker listing pages.')); } } |