Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Elxis 5.5 Calypso supports 2 factor authentication login with e-mail or SMS.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
Language
(Moderator:
Farhad Sakhaei
) »
Multilingual syndicate title for RSS Feeds
« previous
next »
Print
Pages: [
1
]
Author
Topic: Multilingual syndicate title for RSS Feeds (Read 5463 times)
nikos
Elxis Community
Hero Member
Posts: 1094
Multilingual syndicate title for RSS Feeds
«
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
Logged
Elxis Community |
Open Source Web Lab
datahell
Elxis Team
Hero Member
Posts: 10356
Re: Multilingual syndicate title for RSS Feeds
«
Reply #1 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).
«
Last Edit: October 05, 2010, 19:35:03 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
nikos
Elxis Community
Hero Member
Posts: 1094
Re: Multilingual syndicate title for RSS Feeds
«
Reply #2 on:
October 06, 2010, 05:22:55 »
Thanks a lot John
Logged
Elxis Community |
Open Source Web Lab
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
Language
(Moderator:
Farhad Sakhaei
) »
Multilingual syndicate title for RSS Feeds