X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fpasswordsettings.php;h=3ac1a3f94619c3d5f9d819a2000259295153d3a1;hb=8b47400183052873b012dacf4eb5ba841914a886;hp=63acba7134d637e5b634afb30eaa6af4d572d1d1;hpb=2f8b7f3dea4ce589cc7ab00ecd9f0104e518cfd2;p=quix0rs-gnu-social.git diff --git a/actions/passwordsettings.php b/actions/passwordsettings.php index 63acba7134..3ac1a3f946 100644 --- a/actions/passwordsettings.php +++ b/actions/passwordsettings.php @@ -143,6 +143,7 @@ class PasswordsettingsAction extends SettingsAction $token = $this->trimmed('token'); if (!$token || $token != common_session_token()) { + // TRANS: Client error displayed when the session token does not match or is not given. $this->showForm(_('There was a problem with your session token. '. 'Try again, please.')); return; @@ -156,14 +157,15 @@ class PasswordsettingsAction extends SettingsAction $newpassword = $this->arg('newpassword'); $confirm = $this->arg('confirm'); - # Some validation + // Some validation if (strlen($newpassword) < 6) { // TRANS: Form validation error on page where to change password. $this->showForm(_('Password must be 6 or more characters.')); return; } else if (0 != strcmp($newpassword, $confirm)) { - $this->showForm(_('Passwords don\'t match.')); + // TRANS: Form validation error on password change when password confirmation does not match. + $this->showForm(_('Passwords do not match.')); return; }