Harmonize message for 'User has no profile.' and update translator documentation.

This commit is contained in:
Siebrand Mazeland
2011-04-25 14:48:19 +02:00
parent 14389414b6
commit a2e4a1803c
24 changed files with 32 additions and 29 deletions

View File

@@ -69,6 +69,7 @@ class MapAction extends OwnerDesignAction
$this->user = User::staticGet('nickname', $nickname);
if (!$this->user) {
// TRANS: Client error displayed when referring to a non-existing user.
$this->clientError(_m('No such user.'), 404);
return false;
}
@@ -76,6 +77,7 @@ class MapAction extends OwnerDesignAction
$this->profile = $this->user->getProfile();
if (!$this->profile) {
// TRANS: Error message displayed when referring to a user without a profile.
$this->serverError(_m('User has no profile.'));
return false;
}