]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/peopletag.php
ShowprofiletagAction now extends ShowstreamAction
[quix0rs-gnu-social.git] / actions / peopletag.php
index d549586f13df1bdf1ffbbe366686c247da3d47ea..b0a6e2635deb72b94a2cb63b2de2ebe2e72418f9 100644 (file)
@@ -2,7 +2,7 @@
 /**
  * StatusNet, the distributed open-source microblogging tool
  *
- * People tags by a user
+ * Lists by a user
  *
  * PHP version 5
  *
@@ -52,9 +52,13 @@ class PeopletagAction extends Action
     function title()
     {
         if ($this->page == 1) {
-            return sprintf(_("Public people tag %s"), $this->tag);
+            // TRANS: Title for list page.
+            // TRANS: %s is a list.
+            return sprintf(_('Public list %s'), $this->tag);
         } else {
-            return sprintf(_("Public people tag %s, page %d"), $this->tag, $this->page);
+            // TRANS: Title for list page.
+            // TRANS: %1$s is a list, %2$d is a page number.
+            return sprintf(_('Public list %1$s, page %2$d'), $this->tag, $this->page);
         }
     }
 
@@ -74,7 +78,6 @@ class PeopletagAction extends Action
                 $args['page'] = $this->page;
             }
             common_redirect(common_local_url('peopletag', $args), 301);
-            return false;
         }
         $this->tag = $tag;
 
@@ -96,12 +99,14 @@ class PeopletagAction extends Action
     function showAnonymousMessage()
     {
         $notice =
-          _('People tags are how you sort similar ' .
+          // TRANS: Message for anonymous users on list page.
+          // TRANS: This message contains Markdown links in the form [description](link).
+          _('Lists are how you sort similar ' .
             'people on %%site.name%%, a [micro-blogging]' .
             '(http://en.wikipedia.org/wiki/Micro-blogging) service ' .
             'based on the Free Software [StatusNet](http://status.net/) tool. ' .
             'You can then easily keep track of what they ' .
-            'are doing by subscribing to the tag\'s timeline.' );
+            'are doing by subscribing to the list\'s timeline.' );
         $this->elementStart('div', array('id' => 'anon_notice'));
         $this->raw(common_markup_to_html($notice));
         $this->elementEnd('div');
@@ -140,7 +145,7 @@ class PeopletagAction extends Action
         } else {
             $ptags->whereAdd('(profile_list.private = false OR (' .
                              ' profile_list.tagger =' . $user->id .
-                             ' AND profile_list.private = true) )');   
+                             ' AND profile_list.private = true) )');
 
             $ptags->orderBy('profile_list.modified DESC');
             $ptags->find();