Multilanguage site with News need the right realUrl configuration to show speaking-urls in right language:
www.mydomain.com/news/this-is-my-first-news.html
www.mydomain.com/it/news/questa-e-la-mia-prima-news.html
www.mydomain.com/de/news/dies-ist-meine-erste-news.html
standard realurl configuration is
[...]
, 'news' => array(
array(
'GETvar' => 'tx_ttnews[tt_news]'
, 'lookUpTable' => array(
'table' => 'tt_news'
, 'id_field' => 'uid'
, 'alias_field' => 'title'
, 'addWhereClause' => ' AND deleted != 1'
, 'useUniqueCache' => 1
, 'autoUpdate' => 1
, 'useUniqueCache_conf' => array(
'strtolower' => 1
, 'spaceCharacter' => '-'
)
)
)
[...]
Add 4 rows:
,'languageGetVar' => 'L'
,'languageExceptionUids' => ''
,'languageField' => 'sys_language_uid'
,'transOrigPointerField' => 'l18n_parent'
Here the configuration to select right language title to create right speaking urls:
[...]
, 'news' => array(
array(
'GETvar' => 'tx_ttnews[tt_news]'
, 'lookUpTable' => array(
'table' => 'tt_news'
, 'id_field' => 'uid'
, 'alias_field' => 'title'
, 'addWhereClause' => ' AND deleted != 1'
,'languageGetVar' => 'L'
,'languageExceptionUids' => ''
,'languageField' => 'sys_language_uid'
,'transOrigPointerField' => 'l18n_parent'
, 'useUniqueCache' => 1
, 'autoUpdate' => 1
, 'useUniqueCache_conf' => array(
'strtolower' => 1
, 'spaceCharacter' => '-'
)
)
)
[...]