[Validator] Changed DefaultTranslator::getLocale() to always return 'en'

This commit is contained in:
Bernhard Schussek 2013-01-08 15:27:42 +01:00
parent 58bfd60b0f
commit 586a16e8f8
1 changed files with 3 additions and 3 deletions

View File

@ -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()
{
throw new BadMethodCallException('Unsupported method.');
return 'en';
}
}