Browse Source

Update AuthExtComponent.php

Minor translation fixes
LDSign 12 years ago
parent
commit
a9a87befc2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Controller/Component/AuthExtComponent.php

+ 2 - 2
Controller/Component/AuthExtComponent.php

@@ -110,14 +110,14 @@ class AuthExtComponent extends AuthComponent {
 				return false;
 			}
 			if (isset($user['status']) && defined('User::STATUS_SUSPENDED') && $user['status'] == User::STATUS_SUSPENDED) {
-				$this->loginError = 'Account temporarily locked';
+				$this->loginError = __('Account temporarily locked');
 				if (!empty($user['suspended_reason'])) {
 					$this->loginError .= BR . BR . __('Reason').':' . BR . nl2br(h($user['suspended_reason']));
 				}
 				return false;
 			}
 			if (isset($user['status']) && defined('User::STATUS_DEL') && $user['status'] == User::STATUS_DEL) {
-				$this->loginError = 'Account deleted';
+				$this->loginError = __('Account deleted');
 				if (!empty($user['suspended_reason'])) {
 					$this->loginError .= BR . BR . __('Reason').':' . BR . nl2br(h($user['suspended_reason']));
 				}