【发布时间】:2014-11-12 21:22:02
【问题描述】:
我正在使用 TYPO3 CMS 6.2.6 和一个新的很棒的 Extbase 扩展,称为“jobfair”。 我已经像这样添加了我的新 templateRootPaths:
plugin.tx_jobfair {
view {
templateRootPaths {
100 = EXT:jobfair/Resources/Private/Templates/
101 = fileadmin/templates/ext/jobfair/Resources/Private/Templates/
}
partialRootPaths {
100 = EXT:jobfair/Resources/Private/Partials/
101 = fileadmin/templates/ext/jobfair/Resources/Private/Partials/
}
layoutRootPaths {
100 = EXT:jobfair/Resources/Private/Layouts/
101 = fileadmin/templates/ext/jobfair/Resources/Private/Layouts/
}
}
}
...
所以我可以为我的特定设计编辑模板和部分。所有其他模板将从 /typo3conf/ext/jobfair/Resources/...
加载一切正常。我还将语言文件夹从扩展 (typo3conf) 复制到我的 fileadmn 文件夹 (fileadmin/.../jobfair/Resources/Private/Language/)。
我编辑“locallang.xlf”和“de.locallang.xlf”,例如:
部分:ContractType.html
<f:if condition="{job.contractType} == 0">
<f:translate key="tx_jobfair_domain_model_job.contract_type.0" />
</f:if>
我将在 de.locallang.xlf 更改目标
<trans-unit id="tx_jobfair_domain_model_job.contract_type">
<source>Contract Type</source>
<target>Here's my german translation!!!</target>
</trans-unit>
但它不起作用!?
如何为我的分机翻译或重命名后端(flexform)标签? de.locallang.xlf 不是正确的文件吗?
感谢您的帮助。 p.s.我清除了 TYPO3 中的所有缓存.. 什么也没发生。
这是我的文件系统
我的 FLUIDTEMPLATE 使用相同的方式
【问题讨论】:
标签: caching typo3 translate extbase