acctfuncs.inc.php: Allow translation of missing strings

Signed-off-by: canyonknight <canyonknight@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
canyonknight 2014-01-19 20:37:34 -05:00 committed by Lukas Fleischer
parent ecbb664b3d
commit 1bc78b9dff

View file

@ -425,7 +425,7 @@ function try_login() {
$userID = valid_user($_REQUEST['user']); $userID = valid_user($_REQUEST['user']);
if ( user_suspended($userID) ) { if ( user_suspended($userID) ) {
$login_error = "Account Suspended."; $login_error = __('Account suspended');
} }
elseif ( $userID && isset($_REQUEST['passwd']) elseif ( $userID && isset($_REQUEST['passwd'])
&& valid_passwd($userID, $_REQUEST['passwd']) ) { && valid_passwd($userID, $_REQUEST['passwd']) ) {
@ -490,7 +490,7 @@ function try_login() {
} }
else { else {
$login_error = "Error trying to generate session id."; $login_error = __('An error occurred trying to generate a user session.');
} }
} elseif (passwd_is_empty($userID)) { } elseif (passwd_is_empty($userID)) {
$login_error = __('Your password has been reset. ' . $login_error = __('Your password has been reset. ' .