Elxis CMS Forum

Support => Language => Topic started by: nikos on October 05, 2010, 16:00:37

Title: Multilingual syndicate title for RSS Feeds
Post by: nikos on October 05, 2010, 16:00:37
How I can give different title for any published language for RSS Feeds?

Example:

Greek: Τελευταία νέα

English: Latest news

French: Les dernières dépêches
Title: Re: Multilingual syndicate title for RSS Feeds
Post by: datahell on October 05, 2010, 19:32:51
components/com_rss/rss.php
line 114:
$rss->title = $info[ 'title' ];

change it to this:
if ($lang == 'greek') {
     $rss->title = 'Τελευταία νέα';
} elseif ($lang == 'french') {
     $rss->title = 'Les dernières dépêches';
} else {
     $rss->title = $info[ 'title' ];
}

Save the file as UTF-8 after this and clear cache.
Write the RSS title in English (Latest news) in component's syndicate parameters. So, for any other language it will display the english title as you have it in the parameters of component syndicate (RSS).
Title: Re: Multilingual syndicate title for RSS Feeds
Post by: nikos on October 06, 2010, 05:22:55
Thanks a lot John  :D