{"issue":{"created_at":"2011-11-11T13:50:45Z","state":"closed","updated_at":"2011-11-29T17:23:14Z","user":{"gravatar_id":"076b9781d7378b7350c44316b0ab7c51","id":769773,"url":"https://api.github.com/users/francodacosta","avatar_url":"https://secure.gravatar.com/avatar/076b9781d7378b7350c44316b0ab7c51?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"francodacosta"},"comments":2,"body":"the code :\r\n\r\n$builder->add('password', 'repeated', array('type' => 'password',\r\n                'first_name' => 'form.registration.password.password',\r\n                'second_name' => 'form.registration.password.confirmation'\r\n             ))\r\n\r\nwhen rendering the form with twig the fields label are Form.registration.password.password and Form.registration.password.confirmation\r\n\r\nthis breaks translations\r\n\r\nVersions of the components I'm using :\r\n\r\n[symfony]\r\n    git=http://github.com/symfony/symfony.git\r\n    version=v2.0.1\r\n\r\n[twig]\r\n    git=http://github.com/fabpot/Twig.git\r\n    version=v1.1.2\r\n\r\n[monolog]\r\n    git=http://github.com/Seldaek/monolog.git\r\n    version=1.0.1\r\n\r\n[doctrine-common]\r\n    git=http://github.com/doctrine/common.git\r\n    version=2.1.1\r\n\r\n[doctrine-dbal]\r\n    git=http://github.com/doctrine/dbal.git\r\n    version=2.1.1\r\n\r\n[doctrine]\r\n    git=http://github.com/doctrine/doctrine2.git\r\n    version=2.1.1\r\n\r\n[swiftmailer]\r\n    git=http://github.com/swiftmailer/swiftmailer.git\r\n    version=v4.1.1\r\n\r\n[assetic]\r\n    git=http://github.com/kriswallsmith/assetic.git\r\n    version=v1.0.1\r\n\r\n[twig-extensions]\r\n    git=http://github.com/fabpot/Twig-extensions.git\r\n\r\n[metadata]\r\n    git=http://github.com/schmittjoh/metadata.git\r\n    version=1.0.0\r\n\r\n[SensioFrameworkExtraBundle]\r\n    git=http://github.com/sensio/SensioFrameworkExtraBundle.git\r\n    target=/bundles/Sensio/Bundle/FrameworkExtraBundle\r\n\r\n[JMSSecurityExtraBundle]\r\n    git=http://github.com/schmittjoh/JMSSecurityExtraBundle.git\r\n    target=/bundles/JMS/SecurityExtraBundle\r\n\r\n[SensioDistributionBundle]\r\n    git=http://github.com/sensio/SensioDistributionBundle.git\r\n    target=/bundles/Sensio/Bundle/DistributionBundle\r\n\r\n[SensioGeneratorBundle]\r\n    git=http://github.com/sensio/SensioGeneratorBundle.git\r\n    target=/bundles/Sensio/Bundle/GeneratorBundle\r\n\r\n[AsseticBundle]\r\n    git=http://github.com/symfony/AsseticBundle.git\r\n    target=/bundles/Symfony/Bundle/AsseticBundle\r\n    version=v1.0.0","assignee":null,"id":2209478,"labels":[{"name":"Bug","color":"e10c02","url":"https://api.github.com/repos/symfony/symfony/labels/Bug"},{"name":"Form","color":"d7e102","url":"https://api.github.com/repos/symfony/symfony/labels/Form"}],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":2621,"title":"Form repeated field makes the label always with a capital first letter","closed_at":"2011-11-11T20:54:33Z","html_url":"https://github.com/symfony/symfony/issues/2621","url":"https://api.github.com/repos/symfony/symfony/issues/2621","milestone":null},"action":"created","comment":{"created_at":"2011-11-29T17:23:14Z","updated_at":"2011-11-29T17:23:14Z","user":{"gravatar_id":"3a9ee13f7874f2cecb4a5cf618a61647","id":1174479,"url":"https://api.github.com/users/Schyzophrenic","avatar_url":"https://secure.gravatar.com/avatar/3a9ee13f7874f2cecb4a5cf618a61647?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Schyzophrenic"},"body":"I ran into the same issue and I was about to create a new bug for this issue. It may be the names and not the labels but they are considered as labels when displayed. Thus, everybody's confusion I think.\r\n\r\nPutting second_name => 'confirmPassword' will lead to a label being displayed : \"ConfirmPassword\"\r\n\r\nAdding a key \"ConfirmPassword\" in the translation file will lead to a label being displayed : \"Ma confirmation de mot de passe\".\r\n\r\nTherfore, I am not the one who decides whether this is a bug, but there is obviously something that need more explanation.","id":2936885,"url":"https://api.github.com/repos/symfony/symfony/issues/comments/2936885"}}