<p dir="auto">Hi,</p>
<p dir="auto">It's great that you in sf 2.1 can set a global translation_domain for a form, but it's not delegated to repeated types, and setting <code class="notranslate">"options" =&gt; array("translation_domain" =&gt; "xxx")</code> does not work.</p>
<p dir="auto">My builder element looks like this:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$builder-&gt;add('password', 'repeated', array(
    'type'            =&gt; 'password',
    'invalid_message' =&gt; 'password.invalid.match',
    'first_name'      =&gt; 'pass',
    'second_name'     =&gt; 'pass_repeated',
    'required'        =&gt; true,
    'error_bubbling'  =&gt; true,
    'options'         =&gt; array(
        'attr' =&gt; array('autocomplete' =&gt; 'off'),
        'translation_domain' =&gt; 'account'
    ),
));"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>builder</span>-&gt;<span class="pl-en">add</span>(<span class="pl-s">'password'</span>, <span class="pl-s">'repeated'</span>, <span class="pl-en">array</span>(
    <span class="pl-s">'type'</span>            =&gt; <span class="pl-s">'password'</span>,
    <span class="pl-s">'invalid_message'</span> =&gt; <span class="pl-s">'password.invalid.match'</span>,
    <span class="pl-s">'first_name'</span>      =&gt; <span class="pl-s">'pass'</span>,
    <span class="pl-s">'second_name'</span>     =&gt; <span class="pl-s">'pass_repeated'</span>,
    <span class="pl-s">'required'</span>        =&gt; <span class="pl-c1">true</span>,
    <span class="pl-s">'error_bubbling'</span>  =&gt; <span class="pl-c1">true</span>,
    <span class="pl-s">'options'</span>         =&gt; <span class="pl-en">array</span>(
        <span class="pl-s">'attr'</span> =&gt; <span class="pl-en">array</span>(<span class="pl-s">'autocomplete'</span> =&gt; <span class="pl-s">'off'</span>),
        <span class="pl-s">'translation_domain'</span> =&gt; <span class="pl-s">'account'</span>
    ),
));</pre></div>
<p dir="auto">any idea how to make this work ?</p>
<p dir="auto">I noticed that my local copy of packagist started to fail, and after some digging it appears related to PHP5.3</p>
<p dir="auto">This is all based on the 2.3 symfony branch.</p>
<p dir="auto">Here is a test to show my thinking.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    /**
     * https://github.com/composer/packagist/issues/458
     * Based on https://github.com/composer/packagist/commit/daba8a97422a2c993653acb1b9f127f495d16c70
     */
    public function testPackagist()
    {
        $storage = $this-&gt;getStorage();
        $bag = new FlashBag();
        $storage-&gt;registerBag($bag);
        $storage-&gt;getBag($bag-&gt;getName());

        $storage-&gt;save();

        $this-&gt;assertSame($bag, $storage-&gt;getBag($bag-&gt;getName()));
    }"><pre class="notranslate"><code class="notranslate">    /**
     * https://github.com/composer/packagist/issues/458
     * Based on https://github.com/composer/packagist/commit/daba8a97422a2c993653acb1b9f127f495d16c70
     */
    public function testPackagist()
    {
        $storage = $this-&gt;getStorage();
        $bag = new FlashBag();
        $storage-&gt;registerBag($bag);
        $storage-&gt;getBag($bag-&gt;getName());

        $storage-&gt;save();

        $this-&gt;assertSame($bag, $storage-&gt;getBag($bag-&gt;getName()));
    }
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PHPUnit 4.4.0 by Sebastian Bergmann.

Configuration read from /var/www/HttpFoundation/phpunit.xml.dist

...............................................................  63 / 736 (  8%)
............................................................... 126 / 736 ( 17%)
...........................S....................E.............. 189 / 736 ( 25%)
............................................................... 252 / 736 ( 34%)
............................................................... 315 / 736 ( 42%)
............................................................... 378 / 736 ( 51%)
............................................................... 441 / 736 ( 59%)
............................................................... 504 / 736 ( 68%)
............................................................... 567 / 736 ( 77%)
........................................................SSSSSSS 630 / 736 ( 85%)
SSSSSSSSSSSSSSSSSSSSS....................................E..... 693 / 736 ( 94%)
....S.S.S.....S.S..S..S....................

Time: 6.34 seconds, Memory: 56.25Mb

There were 2 errors:

1) Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testSetContent
json_encode(): Invalid UTF-8 sequence in argument

/var/www/HttpFoundation/JsonResponse.php:94
/var/www/HttpFoundation/JsonResponse.php:44
/var/www/HttpFoundation/JsonResponse.php:52
/var/www/HttpFoundation/Tests/JsonResponseTest.php:183

2) Symfony\Component\HttpFoundation\Tests\Session\Storage\NativeSessionStorageTest::testPackagist
RuntimeException: Failed to start the session: already started by PHP ($_SESSION is set).

/var/www/HttpFoundation/Session/Storage/NativeSessionStorage.php:139
/var/www/HttpFoundation/Session/Storage/NativeSessionStorage.php:265
/var/www/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php:89

FAILURES!                                            
Tests: 736, Assertions: 1556, Errors: 2, Skipped: 36.

$ php -v
PHP 5.3.10-1ubuntu3.15 with Suhosin-Patch (cli) (built: Oct 29 2014 12:19:04) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies"><pre class="notranslate"><code class="notranslate">PHPUnit 4.4.0 by Sebastian Bergmann.

Configuration read from /var/www/HttpFoundation/phpunit.xml.dist

...............................................................  63 / 736 (  8%)
............................................................... 126 / 736 ( 17%)
...........................S....................E.............. 189 / 736 ( 25%)
............................................................... 252 / 736 ( 34%)
............................................................... 315 / 736 ( 42%)
............................................................... 378 / 736 ( 51%)
............................................................... 441 / 736 ( 59%)
............................................................... 504 / 736 ( 68%)
............................................................... 567 / 736 ( 77%)
........................................................SSSSSSS 630 / 736 ( 85%)
SSSSSSSSSSSSSSSSSSSSS....................................E..... 693 / 736 ( 94%)
....S.S.S.....S.S..S..S....................

Time: 6.34 seconds, Memory: 56.25Mb

There were 2 errors:

1) Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testSetContent
json_encode(): Invalid UTF-8 sequence in argument

/var/www/HttpFoundation/JsonResponse.php:94
/var/www/HttpFoundation/JsonResponse.php:44
/var/www/HttpFoundation/JsonResponse.php:52
/var/www/HttpFoundation/Tests/JsonResponseTest.php:183

2) Symfony\Component\HttpFoundation\Tests\Session\Storage\NativeSessionStorageTest::testPackagist
RuntimeException: Failed to start the session: already started by PHP ($_SESSION is set).

/var/www/HttpFoundation/Session/Storage/NativeSessionStorage.php:139
/var/www/HttpFoundation/Session/Storage/NativeSessionStorage.php:265
/var/www/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php:89

FAILURES!                                            
Tests: 736, Assertions: 1556, Errors: 2, Skipped: 36.

$ php -v
PHP 5.3.10-1ubuntu3.15 with Suhosin-Patch (cli) (built: Oct 29 2014 12:19:04) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
</code></pre></div>
<p dir="auto">The passes in PHP 5.5.19</p>