0
からのアクセスlocallang.xlfは私が独自のテンプレートを持っており、このテンプレートでは、私はtx_newsのテンプレートを上書き:流体、別の内線
plugin.tx_news.view {
templateRootPaths.1 = EXT:my_template/Resources/Private/News/Templates/
partialRootPaths.1 = EXT:my_template/Resources/Private/News/Partials/
layoutRootPaths.1 = EXT:my_template/Resources/Private/News/Layouts/
}
今私はMY_TEMPLATEからlocallang.xlfにアクセスしたいと思います。
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
'tt_content.pi_flexform.news_pi1.list', 'EXT:my_template/Resources/Private/Language/locallang.xlf');
そして、私が持っているこのlocallang.xlfで:私はMY_TEMPLATEのext_table.phpでこれを試してみました
<trans-unit id="tx_mytemplate.news">
<source>NEWSTEST</source>
</trans-unit>
そしてtx_newsするlist.htmlに私が持っている:
<f:translate key="tx_mytemplate.news" />
を
しかし、出力はありません。