]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
correct instructions for length in groupeditform
authorEvan Prodromou <evan@controlyourself.ca>
Fri, 21 Aug 2009 10:37:22 +0000 (06:37 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 21 Aug 2009 10:37:22 +0000 (06:37 -0400)
lib/groupeditform.php

index 62ee786144a41c26062de2b98d342b0d855e3315..47e62d469ec3486d63d3af14a80359c512e5f0bc 100644 (file)
@@ -163,9 +163,15 @@ class GroupEditForm extends Form
                           _('URL of the homepage or blog of the group or topic'));
         $this->out->elementEnd('li');
         $this->out->elementStart('li');
+        $desclimit = User_group::maxDescription();
+        if ($desclimit == 0) {
+            $descinstr = _('Describe the group or topic');
+        } else {
+            $descinstr = sprintf(_('Describe the group or topic in %d characters'), $desclimit);
+        }
         $this->out->textarea('description', _('Description'),
                              ($this->out->arg('description')) ? $this->out->arg('description') : $description,
-                             _('Describe the group or topic in 140 chars'));
+                             $descinstr);
         $this->out->elementEnd('li');
         $this->out->elementStart('li');
         $this->out->input('location', _('Location'),