我有一些表单类型不是必填项。表单标签应该本地化,这很容易。
但是当你将某个表单类型配置为'required'=>'false'
时,在类型标签后面会出现一个单词"(optional)"。
如何正确翻译"optional"或禁用它呢?
顺便说一下,我现在完全看不到任何方法。
谢谢
"require": {
"php": ">=5.3.3",
"symfony/symfony": "v2.3.0",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "1.2.*",
"twig/extensions": "1.0.*",
"symfony/assetic-bundle": "2.1.*",
"symfony/swiftmailer-bundle": "2.3.*",
"symfony/monolog-bundle": "2.3.*",
"sensio/distribution-bundle": "2.3.*",
"sensio/framework-extra-bundle": "2.3.*",
"sensio/generator-bundle": "2.3.*",
"jms/security-extra-bundle": "1.4.*@dev",
"jms/di-extra-bundle": "1.3.*@dev",
"twitter/bootstrap" : "dev-master",
"cg/kint-bundle": "dev-master",
"raveren/kint": "dev-master",
"mopa/bootstrap-bundle": "dev-master",
"sonata-project/intl-bundle": "dev-master",
"egeloen/ckeditor-bundle": "2.*"
},