From f65076b93d91fe9718cf9bef37638d64290b9f28 Mon Sep 17 00:00:00 2001 From: Paul Arthur Date: Sat, 31 Mar 2012 17:01:04 -0400 Subject: Switch from _() to T_() Even if we move away from php-gettext in the future, it's easy to write a quick T_() as a simple wrapper; it's not so easy to rewrite PHP to allow redeclaration of a function. --- login.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'login.php') diff --git a/login.php b/login.php index e7611611..893d98e1 100644 --- a/login.php +++ b/login.php @@ -90,14 +90,14 @@ if (($_POST['username'] && $_POST['password']) || } else { debug_event('Login', scrub_out($username) . ' attempted to login and failed', '1'); - Error::add('general', _('Error Username or Password incorrect, please try again')); + Error::add('general', T_('Error Username or Password incorrect, please try again')); } $user = User::get_from_username($username); if ($user->disabled) { $auth['success'] = false; - Error::add('general', _('User Disabled please contact Admin')); + Error::add('general', T_('User Disabled please contact Admin')); debug_event('Login', scrub_out($username) . ' is disabled and attempted to login', '1'); } // if user disabled elseif (Config::get('prevent_multiple_logins')) { @@ -105,7 +105,7 @@ if (($_POST['username'] && $_POST['password']) || $current_ip = inet_pton($_SERVER['REMOTE_ADDR']); if ($current_ip && ($current_ip != $session_ip)) { $auth['success'] = false; - Error::add('general',_('User Already Logged in')); + Error::add('general', T_('User Already Logged in')); debug_event('Login', scrub_out($username) . ' is already logged in from ' . $session_ip . ' and attempted to login from ' . $current_ip, '1'); } // if logged in multiple times } // if prevent multiple logins @@ -126,7 +126,7 @@ if (($_POST['username'] && $_POST['password']) || } else { $auth['success'] = false; - Error::add('general', _('Unable to create local account')); + Error::add('general', T_('Unable to create local account')); } } // End if auto_create -- cgit