Elxis CMS Forum
Support => Language => Topic started 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
-
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).
-
Thanks a lot John :D