[Validator] Changed DefaultTranslator::getLocale() to always return 'en'
This commit is contained in:
parent
58bfd60b0f
commit
586a16e8f8
@ -156,12 +156,12 @@ class DefaultTranslator implements TranslatorInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Not supported.
|
* Returns the locale of the translator.
|
||||||
*
|
*
|
||||||
* @throws BadMethodCallException
|
* @return string Always returns 'en'
|
||||||
*/
|
*/
|
||||||
public function getLocale()
|
public function getLocale()
|
||||||
{
|
{
|
||||||
throw new BadMethodCallException('Unsupported method.');
|
return 'en';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user