TYPO3外部表单-如何更改摘要页面的标签(标题)?
我正在使用表单扩展名,这是我的yaml文件的一部分:TYPO3外部表单-如何更改摘要页面的标签(标题)?,typo3,yaml,typo3-8.x,typo3-8.7.x,Typo3,Yaml,Typo3 8.x,Typo3 8.7.x,我正在使用表单扩展名,这是我的yaml文件的一部分: - renderingOptions: previousButtonLabel: 'Go Back' nextButtonLabel: 'Send Message' type: SummaryPage identifier: summarypage-1 label: Summary 在xlf文件中,我可以访问如下按钮: <trans-unit id="BasicContact
-
renderingOptions:
previousButtonLabel: 'Go Back'
nextButtonLabel: 'Send Message'
type: SummaryPage
identifier: summarypage-1
label: Summary
在xlf文件中,我可以访问如下按钮:
<trans-unit id="BasicContactForm.element.page-1.renderingOptions.nextButtonLabel" xml:space="preserve">
<source>Send Message</source>
</trans-unit>
<trans-unit id="BasicContactForm.element.summarypage-1.renderingOptions.previousButtonLabel" xml:space="preserve">
<source>Go Back</source>
</trans-unit>
<trans-unit id="element.BasicContactForm.renderingOptions.submitButtonLabel" xml:space="preserve">
<source>Send Message</source>
</trans-unit>
发送消息
回去
发送消息
但是如何访问摘要页面的标签(标题)?这似乎不起作用:
<trans-unit id="element.BasicContactForm.summarypage-1.label" xml:space="preserve">
<source>Summary1</source>
</trans-unit>
总结1
这两者都不是:
<trans-unit id="BasicContactForm.element.summarypage-1.label" xml:space="preserve">
<source>Summary1</source>
</trans-unit>
总结1
您可以像翻译表单字段标签一样翻译(摘要)页面的标签
在您的情况下,以下翻译键是可能的:
<!-- All elements of type 'SummaryPage' -->
<trans-unit id="element.SummaryPage.properties.label">
<source>Summary</source>
</trans-unit>
<!-- All elements with the identifier 'summarypage-1' -->
<trans-unit id="element.summarypage-1.properties.label">
<source>Summary</source>
</trans-unit>
<!-- The single element with the identifier 'summarypage-1' inside the form 'BasicContactForm' -->
<trans-unit id="BasicContactForm.element.summarypage-1.properties.label">
<source>Summary</source>
</trans-unit>
总结
总结
总结
我写了一篇关于TYPO3格式翻译的综合教程,其中有许多解释和示例,您可以在这里找到: