]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/peopletagsforusersection.php
Introduced isCurrentProfileInScope() which shall check if current profile is
[quix0rs-gnu-social.git] / lib / peopletagsforusersection.php
index fef469eb8daaf096520110ebb1c42f69101a7dbb..37f46b850d128c5b83d4430b5a775c86c154c27b 100644 (file)
@@ -2,7 +2,7 @@
 /**
  * StatusNet, the distributed open-source microblogging tool
  *
- * People tags a user has been tagged with
+ * Lists a user is in
  *
  * PHP version 5
  *
@@ -31,7 +31,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
 }
 
 /**
- * People tags a user has been tagged with
+ * List a user has is in
  *
  * @category Widget
  * @package  StatusNet
@@ -62,13 +62,15 @@ class PeopletagsForUserSection extends PeopletagSection
 
     function title()
     {
-        $name = $this->profile->getBestName();
-        if ($this->profile->id == common_current_user()->id) {
-            $name = 'you';
+        $user = common_current_user();
+
+        if (!empty($user) && $this->profile->id == $user->id) {
+            // TRANS: Title for page that displays which lists current user is part of.
+            return sprintf(_('Lists with you'));
         }
-        // TRANS: Title for page that displays which people tags a user has been tagged with.
+        // TRANS: Title for page that displays which lists a user is part of.
         // TRANS: %s is a profile name.
-        return sprintf(_('People tags for %s'), $name);
+        return sprintf(_('Lists with %s'), $this->profile->getBestName());
     }
 
     function link()