Closed DrRobotto closed 1 year ago
No the translation direct come from the normal TYPO3 translation handling.
[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]
but maybe there is no "it" translation in that old version?
Yep, maybe the language files are missing.
I added:
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!
}
plugin.tx_dp_cookieconsent._LOCAL_LANG.it {
message = Questo sito web utilizza cookie che sono necessari per il funzionamento tecnico del sito e vengono sempre impostati. Altri cookie, per personalizzare i contenuti e gli annunci e per analizzare il traffico sul nostro sito web, vengono impostati solo con il vostro consenso. Condividiamo inoltre le informazioni sull'utilizzo del nostro sito web con i nostri partner di social media, pubblicitĂ e analisi.
dismiss = Declina
allow = Consenti tutto!
link = Maggiori informazioni
deny = Chiudi
allowall = Consenti tutto!
}
with
[globalVar = GP:L = 1]
page.config.sys_language_uid = 1
page.config.language = it
page.config.locale_all = it_IT.UTF-8
page.config.htmlTag_langKey = it
config.sys_language_uid = 1
config.language = it
config.locale_all = it_IT.UTF-8
config.htmlTag_langKey = it
[global]
[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]
Works for the German and English version, but not for the Italian one.
So you have to mask the apostroph (') to ', then it works. Thank you very much!
I am managing a very old typo3 6.2. website and I have successfully integrated your cookie consent banner. It works like a charm in the German (default) version of the page.
However, the text from the cookie div in the right corner translates only for the German site and not for the Italian or English site. You can switch the languages at the top left of the website. It seems that f:translate does not find the other languages.
The languages are configured using:
Is there any way to pass the current language of the website to your plugin or any other configuration option which I have missed?