TYPO3:如何翻译新闻文章中的内容元素? [英] TYPO3: How can I translate content elements within articles for news?

查看:110
本文介绍了TYPO3:如何翻译新闻文章中的内容元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用新闻扩展名:news,并已通过扩展名设置(使用内容元素关系)为我的文章启用了内容元素呈现.这很好用,编校人员也可以在新闻文章中使用内容元素.

I am using the news extension: news and have enabled the content element rendering for my articles via extension setup (Use content element relation). This works great and redacteurs can use content elements in the news articles, too.

此外,我已经对所有文章进行了本地化和翻译,因此,如果我在前端切换语言,则会显示翻译后的文章,但是此翻译后文章中的内容元素仍为默认语言且未翻译.因此,似乎内容元素的翻译对我不起作用.

Furthermore I have localized and translated all the articles So if I switch the language in frontend then the translated articles will show up, but the content elements within this translated articles are still in the default language and not translated. So it seems that the translation of the content elements is not working for me.

由于这个原因,我再次检查了翻译文章中内容元素的语言,但是此内容元素的语言设置看起来正确:

For this reason I have checked the language of the content elements within the translated articles again, but the language settings of this content elements looks right:

我不知道我在做什么错,希望您能帮助我吗?

I don't know what I am doing wrong and hope you can help me?

系统:

  • TYPO3 7.6.12
  • 新闻4.3.0

更新

我找到了以下票证: https://forge.typo3.org/issues/67905 ,并且我已尝试在此票证中输入错误的更新版本,但对我而言不起作用,但也许也是翻译内容元素的正确方法.有什么主意吗?

I have found the following ticket: https://forge.typo3.org/issues/67905 and I have tried a updated version of the typoscript in this ticket, but it don't work for me, but maybe is this right way to get the content elements translated, too. Any idea?

推荐答案

我找到了解决方案:).新闻使用RECORDS进行内容元素渲染.所以我必须添加一些打字稿.

I have found the solution :). News use RECORDS for content element rendering. So I have to add some typoscript.

setup.txt或设置区域

config {
    sys_language_overlay = 1
}

这篇关于TYPO3:如何翻译新闻文章中的内容元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆