- $this->clientError(
- sprintf(
- _('Description is too long (max %d chars).'),
- User_group::maxDescription()
- ),
- 403,
- $this->format
- );
- return false;
- } elseif (
- !is_null($this->location)
- && mb_strlen($this->location) > 255) {
- $this->clientError(
- _('Location is too long (max 255 chars).'),
- 403,
- $this->format
- );
- return false;
+ // TRANS: Client error shown when providing too long a description during group creation.
+ // TRANS: %d is the maximum number of allowed characters.
+ $this->clientError(sprintf(_m('Description is too long (maximum %d character).',
+ 'Description is too long (maximum %d characters).',
+ User_group::maxDescription()), User_group::maxDescription()), 403);
+
+ } elseif (!is_null($this->location)
+ && mb_strlen($this->location) > 255) {
+ // TRANS: Client error shown when providing too long a location during group creation.
+ $this->clientError(_('Location is too long (maximum 255 characters).'), 403);