]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GroupFavorited/groupfavoritedaction.php
Localisation updates from http://translatewiki.net.
[quix0rs-gnu-social.git] / plugins / GroupFavorited / groupfavoritedaction.php
index 6803bea8d63b1255ee72a74221b54b57e8250735..dcbf7d0bc582dfab8a70b635954c4336d0d52750 100644 (file)
@@ -32,27 +32,22 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
     exit(1);
 }
 
-
 class GroupFavoritedAction extends ShowgroupAction
 {
-
     /**
      * Title of the page
      *
      * @return string page title, with page number
      */
-
     function title()
     {
-        if (!empty($this->group->fullname)) {
-            $base = $this->group->fullname . ' (' . $this->group->nickname . ')';
-        } else {
-            $base = $this->group->nickname;
-        }
+        $base = $this->group->getFancyName();
 
         if ($this->page == 1) {
+            // TRANS: %s is a group name.
             return sprintf(_m('Popular posts in %s group'), $base);
         } else {
+            // TRANS: %1$s is a group name, %2$s is a group number.
             return sprintf(_m('Popular posts in %1$s group, page %2$d'),
                            $base,
                            $this->page);
@@ -66,7 +61,6 @@ class GroupFavoritedAction extends ShowgroupAction
      *
      * @return void
      */
-
     function showContent()
     {
         $groupId = intval($this->group->id);