【发布时间】:2014-06-10 14:17:07
【问题描述】:
我在一个项目中使用 JMS Translation Bundle (https://github.com/schmittjoh/JMSTranslationBundle)。
我有这个函数,它返回一个数组,每个标签前都有@Ignore。但是即使存在@Ignore,JMS 也会生成翻译密钥。
private function getStatusSelect()
{
return array(
"URLverify"=>array(
'label' => /** @Ignore */'Certificates left',
'url' => $this->generateUrl('admin_liste_verif_ready'),
),
"URLlistToAccept"=>array(
'label' => /** @Ignore */'List to accept',
'url' => $this->generateUrl('admin_liste_verif'),
),
"URLaccepted"=>array(
'label' => /** @Ignore */'Accepted',
'url' => $this->generateUrl('admin_liste_index_accepted_action'),
),
"URLrejected"=>array(
'label' => /** @Ignore */'Rejected',
'url' => $this->generateUrl('admin_liste_index_rejected_action'),
),
);
}
在我的代码中的许多其他地方,@Ignore 都可以正常工作,但在这种情况下不是。
你知道为什么吗?
谢谢你
布菲
【问题讨论】:
-
签出这个打开Pull request
标签: symfony translation