我有一些不需要的表单类型。表单标签应该本地化,这很容易。
但是当您将某个表单类型配置为 时'required'=>'false'
,在类型标签之后会出现一个单词“(可选)”。
翻译“可选”或禁用它的正确方法是什么?
顺便提一句。我现在根本看不到任何办法。
谢谢
"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.*"
},