X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Ftagcloudsection.php;h=80a9042e0f1e0bac68016dabe147b2284b25e7b8;hb=e40014b4defa5689b884be06467314019d70b6aa;hp=ff2aca6d6ec06eae34895ac3691fdb240aebcd80;hpb=277a6e984c6778865a62b5a1b99219327460be6d;p=quix0rs-gnu-social.git diff --git a/lib/tagcloudsection.php b/lib/tagcloudsection.php index ff2aca6d6e..80a9042e0f 100644 --- a/lib/tagcloudsection.php +++ b/lib/tagcloudsection.php @@ -1,6 +1,6 @@ . * * @category Widget - * @package Laconica - * @author Evan Prodromou - * @copyright 2009 Control Yourself, Inc. + * @package StatusNet + * @author Evan Prodromou + * @copyright 2009 StatusNet, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 - * @link http://laconi.ca/ + * @link http://status.net/ */ -if (!defined('LACONICA')) { +if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } -define('TAGS_PER_SECTION', 20); +define('TAGS_PER_SECTION', 10); /** * Base class for sections @@ -40,12 +40,11 @@ define('TAGS_PER_SECTION', 20); * group, or site. * * @category Widget - * @package Laconica - * @author Evan Prodromou + * @package StatusNet + * @author Evan Prodromou * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 - * @link http://laconi.ca/ + * @link http://status.net/ */ - class TagCloudSection extends Section { function showContent() @@ -53,7 +52,8 @@ class TagCloudSection extends Section $tags = $this->getTags(); if (!$tags) { - $this->out->element('p', null, _('None')); + // TRANS: Content displayed in a tag cloud section if there are no tags. + $this->out->element('p', null, _m('NOTAGS','None')); return false; } @@ -68,7 +68,8 @@ class TagCloudSection extends Section } if ($cnt == 0) { - $this->out->element('p', null, _('(None)')); + // TRANS: Content displayed in a tag cloud section if there are no tags. + $this->out->element('p', null, _m('NOTAGS','None')); return false; } @@ -114,6 +115,9 @@ class TagCloudSection extends Section function tagUrl($tag) { + if ($this->out instanceof ShowstreamAction) { + return common_local_url('showstream', array('nickname' => $this->out->getTarget()->getNickname(), 'tag' => $tag)); + } return common_local_url('tag', array('tag' => $tag)); }