Skip to content

Instantly share code, notes, and snippets.

@manuakasam
Created August 23, 2013 10:36
Show Gist options
  • Save manuakasam/6317890 to your computer and use it in GitHub Desktop.
Save manuakasam/6317890 to your computer and use it in GitHub Desktop.
Enable Translations
use Zend\Validator\AbstractValidator;
public function onBootstrap($e)
{
$translator = $e->getApplication()->getServiceManager()->get('translator');
AbstractValidator::setDefaultTranslator($translator);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment