X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fpeopletagsection.php;h=ccceb71a63475d7ced1323eb7c4ab610039bac8e;hb=d2104b89d93d40bf68884055196340465f3f6497;hp=a96863c04b276c75aca9e2e31d261b745450880b;hpb=4d61760154a53e39d1e0499d5fe7a4a586e7a9f0;p=quix0rs-gnu-social.git diff --git a/lib/peopletagsection.php b/lib/peopletagsection.php index a96863c04b..ccceb71a63 100644 --- a/lib/peopletagsection.php +++ b/lib/peopletagsection.php @@ -46,7 +46,6 @@ define('PEOPLETAGS_PER_SECTION', 6); * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ - class PeopletagSection extends Section { function showContent() @@ -105,10 +104,11 @@ class PeopletagSectionItem extends PeopletagListItem common_log(LOG_WARNING, "Trying to show missing peopletag; skipping."); return; } + $mode = ($this->peopletag->private) ? 'private' : 'public'; $this->out->elementStart('tr'); - $this->out->elementStart('td', 'peopletag'); + $this->out->elementStart('td', 'peopletag mode-' . $mode); $this->showPeopletag(); $this->out->elementEnd('td'); @@ -120,10 +120,14 @@ class PeopletagSectionItem extends PeopletagListItem function showTag() { - $title = _('Tagged: ') . $this->peopletag->taggedCount() . - ' ' . _('Subscribers: ') . $this->peopletag->subscriberCount(); + // TRANS: List summary. %1$d is the number of users in the list, + // TRANS: %2$d is the number of subscribers to the list. + $title = sprintf(_('Listed: %1$d Subscribers: %2$d'), + $this->peopletag->taggedCount(), + $this->peopletag->subscriberCount()); $this->out->elementStart('span', 'entry-title tag'); + $this->out->element('a', array('rel' => 'bookmark', 'href' => $this->url(),