title: ZF2 - How To Translate Zend Form Validation Error Messages?
body: <p>I have the .po and compiled .mo language files for diffrent languages.
  But language translation is not working on zend form validation error messages.
  I dont want to use extra .php file like fr.php for it.</p>
  
  <p>I got this code from <a href="https://packages.zendframework.com/docs/latest/manual/en/modules/zend.validator.messages.html" rel="nofollow">click here</a></p>
  
  <pre><code>$translator = new Zend\I18n\Translator\Translator();
  $translator-&gt;addTranslationFile(
      'phpArray'
      'resources/languages/en.php',
      'default',
      'en_US'
  );
  
  Zend\Validator\AbstractValidator::setDefaultTranslator($translator);
  </code></pre>
  
  <p>Any solution how to implement it in ZF2.</p>