I'm currently upgrading a site from version 7 to version 9.
I have a small TypoScript object that shows different content depending on the page language selected:
lib.myTSO = TEXT
lib.myTSO.value (
<p>Hello World</p>
)
[globalVar = GP:L =1]
lib.myTSO = TEXT
lib.myTSO.value (
<p>Hello World in a different language</p>
)
[global]
This worked, in version 7 & 8 but no longer appears to be working in version 9. I assume its the way in which I'm calling the language variable?
Thanks again,
Matching against your locale set in site configuration should work:
Reference: https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/SiteHandling/UseSiteInConditions.html
In Constants only this seems to work as of TYPO3 9.5.1