symfony/symfony — Issue #2621: Form repeated field makes the label always with a capital first letter
Author: francodacosta
Created: 2011-11-11 13:50:45+00:00
State: open

the code :

$builder->add('password', 'repeated', array('type' => 'password',
'first_name' => 'form.registration.password.password',
'second_name' => 'form.registration.password.confirmation'
))

when rendering the form with twig the fields label are Form.registration.password.password and Form.registration.password.confirmation

this breaks translations

Versions of the components I'm using :

[symfony]
git=http://github.com/symfony/symfony.git
version=v2.0.1

[twig]
git=http://github.com/fabpot/Twig.git
version=v1.1.2

[monolog]
git=http://github.com/Seldaek/monolog.git
version=1.0.1

[doctrine-common]
git=http://github.com/doctrine/common.git
version=2.1.1

[doctrine-dbal]
git=http://github.com/doctrine/dbal.git
version=2.1.1

[doctrine]
git=http://github.com/doctrine/doctrine2.git
version=2.1.1

[swiftmailer]
git=http://github.com/swiftmailer/swiftmailer.git
version=v4.1.1

[assetic]
git=http://github.com/kriswallsmith/assetic.git
version=v1.0.1

[twig-extensions]
git=http://github.com/fabpot/Twig-extensions.git

[metadata]
git=http://github.com/schmittjoh/metadata.git
version=1.0.0

[SensioFrameworkExtraBundle]
git=http://github.com/sensio/SensioFrameworkExtraBundle.git
target=/bundles/Sensio/Bundle/FrameworkExtraBundle

[JMSSecurityExtraBundle]
git=http://github.com/schmittjoh/JMSSecurityExtraBundle.git
target=/bundles/JMS/SecurityExtraBundle

[SensioDistributionBundle]
git=http://github.com/sensio/SensioDistributionBundle.git
target=/bundles/Sensio/Bundle/DistributionBundle

[SensioGeneratorBundle]
git=http://github.com/sensio/SensioGeneratorBundle.git
target=/bundles/Sensio/Bundle/GeneratorBundle

[AsseticBundle]
git=http://github.com/symfony/AsseticBundle.git
target=/bundles/Symfony/Bundle/AsseticBundle
version=v1.0.0