diff options
author | Mike Cochrane <mikec@mikenz.geek.nz> | 2008-07-13 01:37:48 -0400 |
---|---|---|
committer | Mike Cochrane <mikec@mikenz.geek.nz> | 2008-07-13 01:37:48 -0400 |
commit | b104da04fbcdc39faae42b4a714b730e3e1b05f5 (patch) | |
tree | 6c06b9b47318963b70b6ae7ab2103cc827ae1d9a /actions/updateprofile.php | |
parent | 834c21b2aaf78da1081416d05098286e9bf17c2a (diff) |
Colapse a lot of strings to make like easier for translators and more consisitant for users
darcs-hash:20080713053748-533db-1cdb0cf3a9e4102eb139b74a7a9d4f97dadb20b8.gz
Diffstat (limited to 'actions/updateprofile.php')
-rw-r--r-- | actions/updateprofile.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actions/updateprofile.php b/actions/updateprofile.php index 2d523b342..0889ad082 100644 --- a/actions/updateprofile.php +++ b/actions/updateprofile.php @@ -73,7 +73,7 @@ class UpdateprofileAction extends Action { if ($nickname && !Validate::string($nickname, array('min_length' => 1, 'max_length' => 64, 'format' => VALIDATE_NUM . VALIDATE_ALPHA_LOWER))) { - $this->client_error(_('Nickname must have only letters and numbers and no spaces.')); + $this->client_error(_('Nickname must have only lowercase letters and numbers and no spaces.')); return false; } $license = $req->get_parameter('omb_listenee_license'); @@ -89,7 +89,7 @@ class UpdateprofileAction extends Action { # optional stuff $fullname = $req->get_parameter('omb_listenee_fullname'); if ($fullname && strlen($fullname) > 255) { - $this->client_error(sprintf(_("Full name '%s' too long."), $fullname)); + $this->client_error(_("Full name is too long (max 255 chars).")); return false; } $homepage = $req->get_parameter('omb_listenee_homepage'); @@ -99,12 +99,12 @@ class UpdateprofileAction extends Action { } $bio = $req->get_parameter('omb_listenee_bio'); if ($bio && strlen($bio) > 140) { - $this->client_error(sprintf(_("Bio too long '%s'"), $bio)); + $this->client_error(_("Bio is too long (max 140 chars).")); return false; } $location = $req->get_parameter('omb_listenee_location'); if ($location && strlen($location) > 255) { - $this->client_error(sprintf(_("Location too long '%s'"), $location)); + $this->client_error(_("Location is too long (max 255 chars).")); return false; } $avatar = $req->get_parameter('omb_listenee_avatar'); |