[aur-dev] [PATCH] acctfuncs.inc.php: Allow translation of missing strings
Signed-off-by: canyonknight <canyonknight@gmail.com> --- web/lib/acctfuncs.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php index fe748a2..52eb551 100644 --- a/web/lib/acctfuncs.inc.php +++ b/web/lib/acctfuncs.inc.php @@ -425,7 +425,7 @@ function try_login() { $userID = valid_user($_REQUEST['user']); if ( user_suspended($userID) ) { - $login_error = "Account Suspended."; + $login_error = __('Account suspended'); } elseif ( $userID && isset($_REQUEST['passwd']) && valid_passwd($userID, $_REQUEST['passwd']) ) { @@ -490,7 +490,7 @@ function try_login() { } 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)) { $login_error = __('Your password has been reset. ' . -- 1.8.5.3
On Mon, 20 Jan 2014 at 02:37:34, canyonknight wrote:
Signed-off-by: canyonknight <canyonknight@gmail.com> --- web/lib/acctfuncs.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Good catch, thanks!
diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php index fe748a2..52eb551 100644 --- a/web/lib/acctfuncs.inc.php +++ b/web/lib/acctfuncs.inc.php @@ -425,7 +425,7 @@ function try_login() { $userID = valid_user($_REQUEST['user']);
if ( user_suspended($userID) ) { - $login_error = "Account Suspended."; + $login_error = __('Account suspended'); } elseif ( $userID && isset($_REQUEST['passwd']) && valid_passwd($userID, $_REQUEST['passwd']) ) { @@ -490,7 +490,7 @@ function try_login() {
} 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)) { $login_error = __('Your password has been reset. ' . -- 1.8.5.3
participants (2)
-
canyonknight
-
Lukas Fleischer