X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fpublicpeopletagcloud.php;h=cb65bbb163a4a44a3ca023b7177c6d0f1618c5f5;hb=88c00facc807d1c138146c02c703e2294b5d357b;hp=dc252fe4c8b2a746e17bde50d58e26e9702ce892;hpb=31c1177970124cee31823cab3a11542c23b4126d;p=quix0rs-gnu-social.git diff --git a/actions/publicpeopletagcloud.php b/actions/publicpeopletagcloud.php index dc252fe4c8..cb65bbb163 100644 --- a/actions/publicpeopletagcloud.php +++ b/actions/publicpeopletagcloud.php @@ -44,7 +44,6 @@ define('TAGS_PER_PAGE', 100); * @copyright 2008-2009 StatusNet, Inc. * @link http://status.net/ */ - class PublicpeopletagcloudAction extends Action { function isReadOnly($args) @@ -54,25 +53,33 @@ class PublicpeopletagcloudAction extends Action function title() { - return _('Public people tag cloud'); + // TRANS: Title for page with public list cloud. + return _('Public list cloud'); } function showPageNotice() { $this->element('p', 'instructions', - sprintf(_('These are most used people tags on %s '), + // TRANS: Page notice for page with public list cloud. + // TRANS: %s is a StatusNet sitename. + sprintf(_('These are largest lists on %s'), common_config('site', 'name'))); } function showEmptyList() { - $message = _('No one has [tagged](%%doc.tags%%) anyone yet.') . ' '; + // TRANS: Empty list message on page with public list cloud. + // TRANS: This message contains Markdown links in the form [description](link). + $message = _('No one has [listed](%%doc.tags%%) anyone yet.') . ' '; if (common_logged_in()) { - $message .= _('Be the first to tag someone!'); + // TRANS: Additional empty list message on page with public list cloud for logged in users. + $message .= _('Be the first to list someone!'); } else { - $message .= _('Why not [register an account](%%action.register%%) and be the first to tag someone!'); + // TRANS: Additional empty list message on page with public list cloud for anonymous users. + // TRANS: This message contains Markdown links in the form [description](link). + $message .= _('Why not [register an account](%%action.register%%) and be the first to list someone!'); } $this->elementStart('div', 'guide'); @@ -125,7 +132,8 @@ class PublicpeopletagcloudAction extends Action ksort($tw); $this->elementStart('dl'); - $this->element('dt', null, _('People tag cloud')); + // TRANS: DT element on on page with public list cloud. + $this->element('dt', null, _('List cloud')); $this->elementStart('dd'); $this->elementStart('ul', 'tags xoxo tag-cloud'); foreach ($tw as $tag => $weight) { @@ -165,9 +173,10 @@ class PublicpeopletagcloudAction extends Action $this->elementStart('li', $rel); - $count = ($weight == 1) ? '1 person tagged' : '%d people tagged'; + // TRANS: Link title for number of listed people. %d is the number of listed people. + $title = sprintf(_m('1 person listed','%d people listed',$weight),$weight); $this->element('a', array('href' => common_local_url('peopletag', array('tag' => $tag)), - 'title' => sprintf(_($count), $weight)), $tag); + 'title' => $title), $tag); $this->elementEnd('li'); } }