简体   繁体   English

内联Viewhelper中的Typo3翻译

[英]Typo3 Translation in Inline Viewhelper

I want to set a translation for my Typo3 template. 我想为我的Typo3模板设置翻译。 But I want a translation with {f:translate ...} of a string within a inline viewhelper like this. 但是我想要这样的内联viewhelper中的字符串的{f:translate ...}

{f:if(condition:"{change.newValue}", then : '{change.newValue}', else:
"{f:translate (key:'pdvcalls_form_fields.deleted_close_date')}")}

But this is not working. 但这是行不通的。 Has anyone a idea what I am doing wrong? 有谁知道我在做什么错?

Thanks for your help! 谢谢你的帮助!

You have an extra space before the function paratheses. 函数麻痹之前,您还有多余的空间。

{f:if(condition:"{change.newValue}", then : '{change.newValue}', else:
"{f:translate(key:'pdvcalls_form_fields.deleted_close_date')}")}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM