title: Translation in Validator Component
body: <p>I'm currently integrating the Symfony Validator Component into a custom PHP Application. So far, everything has been working pretty nice and I can validate my User input.</p>
  
  <p>Now I want to translate the validation messages to another locale and have integrated the Translation Component (it's required anyway due to a depnedency with TranslatorInterface in the DefaultTranslator).</p>
  
  <p>The default Translator only supports the locale that is hard coded into the ValidationConstraints. As far as I've figured it out, I need to specify a custom Translator instance that loads the strings from the xliff files in the Validator component.</p>
  
  <p>This is how far I got but the german translation would sadly not load:</p>
  
  <pre><code>    $translator = new Translator('de_DE');
      $translator-&gt;setFallbackLocale('en_GB');
      $translator-&gt;addLoader('xliff', new XliffFileLoader());
  
      $builder = new ValidatorBuilder();
      $validator = $builder
              -&gt;setTranslator($translator)
              -&gt;getValidator();
      $violations = $validator-&gt;validateValue($input, self::getValidationConstraints());
  </code></pre>
  
  <p>Any suggestions what I might be missing out here?</p>