]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/peopletagsection.php
Update/add translator documentation.
[quix0rs-gnu-social.git] / lib / peopletagsection.php
index 6722f3a149599fff414beb270fe5e53568e3622a..20358cb85d9d51985c60b6d67788441dc28aa9ec 100644 (file)
@@ -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()
@@ -112,7 +111,7 @@ class PeopletagSectionItem extends PeopletagListItem
         $this->showPeopletag();
         $this->out->elementEnd('td');
 
-        if ($this->peopletag->value) {
+        if (isset($this->peopletag->value)) {
             $this->out->element('td', 'value', $this->peopletag->value);
         }
         $this->out->elementEnd('tr');
@@ -120,8 +119,11 @@ class PeopletagSectionItem extends PeopletagListItem
 
     function showTag()
     {
-        $title = _('Tagged: ') . $this->peopletag->taggedCount() .
-                 ' ' . _('Subscribers: ') . $this->peopletag->subscriberCount();
+        // TRANS: Tag summary. %1$d is the number of users tagged with the tag,
+        // TRANS: %2$d is the number of subscribers to the tag.
+        $title = sprintf(_('Tagged: %1$d Subscribers: %2$d'),
+                         $this->peopletag->taggedCount(),
+                         $this->peopletag->subscriberCount());
 
         $this->out->elementStart('span', 'entry-title tag');
         $this->out->element('a',