X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Ftagcloudsection.php;h=24a3bd98af96bf6c2baac39b53630217efe06a50;hb=650af0a27102e5e9067850c88e5b8a446b44f045;hp=20533dbe2d8dbb51ae3d8051b32c92c7be0b5a1b;hpb=be5d113fc684fcbe41b8374c62bfeb0f267216b7;p=quix0rs-gnu-social.git diff --git a/lib/tagcloudsection.php b/lib/tagcloudsection.php index 20533dbe2d..24a3bd98af 100644 --- a/lib/tagcloudsection.php +++ b/lib/tagcloudsection.php @@ -27,11 +27,11 @@ * @link http://status.net/ */ -if (!defined('STATUSNET')) { +if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } -define('TAGS_PER_SECTION', 20); +define('TAGS_PER_SECTION', 10); /** * Base class for sections @@ -45,7 +45,6 @@ define('TAGS_PER_SECTION', 20); * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @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; }