<p dir="auto">I'm getting this exception during render of constraint error. I'm using the changepassword form of fosuserbundle using only one character for new password. I used en as default locale so $position = 1 but $standardRules has only one value on key 0 which is the one defined in validations.en.yml of fosuserbundle.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    __project__/vendor/symfony/symfony/src/Symfony/Component/Translation/MessageSelector.php at line 78   
    $position = PluralizationRules::get($number, $locale);
    if (!isset($standardRules[$position])) {
        throw new \InvalidArgumentException('Unable to choose a translation.');
    }
    return $standardRules[$position];"><pre class="notranslate"><code class="notranslate">    __project__/vendor/symfony/symfony/src/Symfony/Component/Translation/MessageSelector.php at line 78   
    $position = PluralizationRules::get($number, $locale);
    if (!isset($standardRules[$position])) {
        throw new \InvalidArgumentException('Unable to choose a translation.');
    }
    return $standardRules[$position];
</code></pre></div>
<p dir="auto">InvalidArgumentException: Unable to choose a translation for "The username is too short" with locale "en" from "Array([0] =&gt; The username is too short)</p>
<p dir="auto">Stack:</p>
<ol dir="auto">
<li>in /srv/httpd/madebyatheists/vendor/symfony/symfony/src/Symfony/Component/Translation/MessageSelector.php at line 78</li>
<li>at MessageSelector -&gt;choose ('The username is too short', '2', 'en')<br>
in /srv/httpd/madebyatheists/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php at line 158</li>
<li>at Translator -&gt;transChoice ('fos_user.username.short', '2', array('%count%' =&gt; '2', '{{ value }}' =&gt; '3', '{{ limit }}' =&gt; '2'), 'validators', null)<br>
in /srv/httpd/madebyatheists/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Extension/TranslationExtension.php at line 102</li>
<li>at TranslationExtension -&gt;transchoice ('fos_user.username.short', '2', array('{{ value }}' =&gt; '3', '{{ limit }}' =&gt; '2'), 'validators')<br>
in kernel.root_dir/cache/dev/twig/d5/f8/67933444399d695f7f689bde7dca.php at line 110<br>
....</li>
</ol>