[Security] Switch to English messages as message keys

This commit is contained in:
Alexander 2013-01-07 20:55:10 +01:00
parent aa7476967a
commit 324703a9ff
16 changed files with 18 additions and 17 deletions

View File

@ -24,6 +24,6 @@ class AccountExpiredException extends AccountStatusException
*/
public function getMessageKey()
{
return 'security.exception.account_expired_exception';
return 'Account has expired.';
}
}

View File

@ -25,6 +25,6 @@ class AuthenticationCredentialsNotFoundException extends AuthenticationException
*/
public function getMessageKey()
{
return 'security.exception.authentication_credentials_not_found_exception';
return 'Authentication credentials could not be found.';
}
}

View File

@ -72,7 +72,7 @@ class AuthenticationException extends \RuntimeException implements \Serializable
*/
public function getMessageKey()
{
return 'security.exception.authentication_exception';
return 'An authentication exception occurred.';
}
/**

View File

@ -24,6 +24,6 @@ class AuthenticationServiceException extends AuthenticationException
*/
public function getMessageKey()
{
return 'security.exception.authentication_service_exception';
return 'Authentication request could not be processed due to a system problem.';
}
}

View File

@ -24,6 +24,6 @@ class BadCredentialsException extends AuthenticationException
*/
public function getMessageKey()
{
return 'security.exception.bad_credentials_exception';
return 'Invalid credentials.';
}
}

View File

@ -25,6 +25,6 @@ class CookieTheftException extends AuthenticationException
*/
public function getMessageKey()
{
return 'security.exception.cookie_theft_exception';
return 'Cookie has already been used by someone else.';
}
}

View File

@ -24,6 +24,6 @@ class CredentialsExpiredException extends AccountStatusException
*/
public function getMessageKey()
{
return 'security.exception.credentials_expired_exception';
return 'Credentials have expired.';
}
}

View File

@ -24,6 +24,6 @@ class DisabledException extends AccountStatusException
*/
public function getMessageKey()
{
return 'security.exception.disabled_exception';
return 'Account is disabled.';
}
}

View File

@ -26,6 +26,6 @@ class InsufficientAuthenticationException extends AuthenticationException
*/
public function getMessageKey()
{
return 'security.exception.insufficient_authentication_exception';
return 'Not privileged to request the resource.';
}
}

View File

@ -24,6 +24,6 @@ class InvalidCsrfTokenException extends AuthenticationException
*/
public function getMessageKey()
{
return 'security.exception.invalid_csrf_token_exception';
return 'Invalid CSRF token.';
}
}

View File

@ -24,6 +24,6 @@ class LockedException extends AccountStatusException
*/
public function getMessageKey()
{
return 'security.exception.locked_exception';
return 'Account is locked.';
}
}

View File

@ -27,6 +27,6 @@ class NonceExpiredException extends AuthenticationException
*/
public function getMessageKey()
{
return 'security.exception.nonce_expired_exception';
return 'Digest nonce has expired.';
}
}

View File

@ -25,6 +25,6 @@ class ProviderNotFoundException extends AuthenticationException
*/
public function getMessageKey()
{
return 'security.exception.provider_not_found_exception';
return 'No authentication provider found to support the authentication token.';
}
}

View File

@ -30,6 +30,6 @@ class SessionUnavailableException extends AuthenticationException
*/
public function getMessageKey()
{
return 'security.exception.session_unavailable_exception';
return 'No session available, it either timed out or cookies are not enabled.';
}
}

View File

@ -1,5 +1,4 @@
<?php
namespace Symfony\Component\Security\Core\Exception;
/*
* This file is part of the Symfony package.
@ -10,6 +9,8 @@ namespace Symfony\Component\Security\Core\Exception;
* file that was distributed with this source code.
*/
namespace Symfony\Component\Security\Core\Exception;
/**
* TokenNotFoundException is thrown if a Token cannot be found.
*
@ -23,6 +24,6 @@ class TokenNotFoundException extends AuthenticationException
*/
public function getMessageKey()
{
return 'security.exception.token_not_found_exception';
return 'No token could be found.';
}
}

View File

@ -26,7 +26,7 @@ class UsernameNotFoundException extends AuthenticationException
*/
public function getMessageKey()
{
return 'security.exception.username_not_found_exception';
return 'Username could not be found.';
}
/**