0

我正在使用TYPO3 7.6.14,我的网站是双语“英语”和“日语”。我的编辑翻译所有英文内容,也翻译图像的 FAL 元数据,如“描述”、“替代文本”和“标题”,s。截屏。 FAL 元数据 TYPO3 语言

整个页面都被翻译了,只有FAL来自图像的 -data 失败(s. screenshot)。我不知道为什么?有人看出我的错吗?我很感激任何帮助,因为我根本不知道它是什么......谢谢。

这是TCA

...
'additional_information' => array(
            'exclude' => 1,
            'label' => 'LLL:EXT:products/Resources/Private/Language/locallang_db.xlf:tx_products_domain_model_product.additional_information',
            'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
                'additional_information',
                array(
                    'appearance' => array(
                        'createNewRelationLinkTitle' => 'LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference'
                    ),
                    'foreign_types' => array(
                        '0' => array(
                            'showitem' => '
                            --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
                            --palette--;;filePalette'
                        ),
                        \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array(
                            'showitem' => '
                            --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
                            --palette--;;filePalette'
                        )
                    ),
                    'maxitems' => 10
                ),
                $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
            ),
        ),
...

Fluid-Template (s.标题photo.originalResource.properties.description:)

<f:for each="{product.additionalInformation}" as="photo" iteration="iterator">
          <div class="column">
          <a class="lightbox2" href="{f:uri.image(src: photo.originalResource.publicUrl, width: 1024)}" data-lightbox="{product.uid}" title="{photo.originalResource.properties.description}">
          <f:image src="{photo.originalResource.originalFile.uid}" alt="" />
            <span class="caption">                                            {photo.originalResource.properties.description}</span>
             </a>
       </div>
</f:for>

前端输出:

前端 FAL 元数据

4

1 回答 1

1

尝试替换<f:image src="{photo.originalResource.originalFile.uid}" alt="" /><f:image image="{photo}" alt="" />.

可能是 FAL 翻译没有得到正确支持。请查看newsGeorg Ringer 的扩展。如果它在那里不起作用,那么它根本不起作用。

于 2017-03-31T13:58:47.937 回答