Typo3cookie同意仅适用于德语



我正在处理一个非常旧的typo3 6.2。网站:Gurtenhof

我已经成功地从Dp集成了cookie同意横幅

但是,右角cookiediv中的文本只能翻译为德语站点,而不能翻译为意大利语或英语站点。你可以在网站左上角切换语言。似乎f:translate没有找到其他语言

语言配置使用:

[globalVar=GP:L=1]
config{
htmlTag_langKey=it
sys_language_uid=1
language=it
locale_all=it_IT.utf8
}
[end]
[globalVar=GP:L=2]
config{
htmlTag_langKey=en
sys_language_uid=2
language=en
locale_all=en_GB.utf8
}
[end]

是否有办法将网站的当前语言传递给插件或我错过的任何其他配置选项?

语言标签应该是以下形式,因为插件直接从配置中获取它们:

[globalVar = GP:L = 2]
page.config.sys_language_uid = 2
page.config.language = en
page.config.locale_all = en_EN.UTF-8
page.config.htmlTag_langKey = en

config.sys_language_uid = 2
config.language = en
config.locale_all = en_EN.UTF-8
config.htmlTag_langKey = en
[global]

然后您可以添加所有不同语言的翻译:

plugin.tx_dp_cookieconsent._LOCAL_LANG.en {
message = This website uses cookies that are necessary for the technical operation of the website and are always set. Other cookies, to personalise content and ads and to analyse traffic to our website, are only set with your consent. We also share information about your use of our website with our social media, advertising and analytics partners.
dismiss = Allow cookies!
allow = Allow cookies!
link = More info
deny = Decline
allowall = Allow cookies!
}

注意:某些特殊字符必须使用html实体来屏蔽。

相关内容

  • 没有找到相关文章

最新更新