[TYPO3-ttnews] News URLs not translated with cookie

adam harvie adam.harvie at gmail.com
Tue Jul 19 19:49:56 CEST 2011


Hi all,

We have a bilingual site with a tt_news LIST element on the front page. We
use cb_cookie to check a language cookie and set the language in the
template typoscript accordingly. The problem currently is that the front
page content all renders in the correct language, but the URLs for the news
list always render as the default language.

So:
sys_language_uid:
0 = English
4 = French

TS setup in template as follows:

config {
  linkVars = L
  sys_language_uid = 0
  language = en
  locale_all = ca_EN
}

[globalVar = GP:L=4] || [globalString = _COOKIE|lang = fr]
config {
  sys_language_uid = 4
  language = fr
  locale_all = ca_FR
}
[global]

*** END TS***

If the cookie 'lang' is set to 'fr', all the page content renders in French,
the LIST titles and subheaders render in French, but the URLs are the
default/English:
ourdomain.tld/news-media/date/title

When we want:
ourdomain.tld/fr/actualites-media/date/title

We also use CoolURI, if that's relevant. It seems to be tt_news isn't
getting the right language information for generating its links.
Is there anything I might be missing?


Thanks,
Adam Harvie


More information about the TYPO3-project-tt-news mailing list