Read me link
- peanutsfr
- Topic Author
- Offline
- New Member
Less
More
- Thank you received: 0
12 years 9 months ago #6531
by peanutsfr
Dear Sir,
I would be great if in Ajax Scroller, the link "read more..." was included in a translation file or equal to the localised value of the Joomla global var for read more.
Thanks in advance.
I would be great if in Ajax Scroller, the link "read more..." was included in a translation file or equal to the localised value of the Joomla global var for read more.
Thanks in advance.
Please Log in or Create an account to join the conversation.
- Saka
- Offline
- Administrator
12 years 9 months ago #6532
by Saka
Emir Sakic
www.sakic.net
It is already. If you have problems with that explain in detail and I will try to replicate.
Emir Sakic
www.sakic.net
Please Log in or Create an account to join the conversation.
- peanutsfr
- Topic Author
- Offline
- New Member
Less
More
- Thank you received: 0
12 years 9 months ago #6534
by peanutsfr
Ok, where can I define _READ_MORE as shown in common.php?
Please Log in or Create an account to join the conversation.
- Saka
- Offline
- Administrator
12 years 9 months ago #6538
by Saka
Emir Sakic
www.sakic.net
Which version of Joomla do you use?
Emir Sakic
www.sakic.net
Please Log in or Create an account to join the conversation.
- peanutsfr
- Topic Author
- Offline
- New Member
Less
More
- Thank you received: 0
12 years 9 months ago - 12 years 9 months ago #6545
by peanutsfr
I use Joomla 2.5.1 with french translation and there's no READ_MORE in xx-XX.com_content.ini but there's a COM_CONTENT_READ_MORE and a COM_CONTENT_READ_MORE_TITLE
Last Edit: 12 years 9 months ago by peanutsfr.
Please Log in or Create an account to join the conversation.
- peanutsfr
- Topic Author
- Offline
- New Member
Less
More
- Thank you received: 0
12 years 8 months ago #6548
by peanutsfr
OK, I've donne a little mod in common.php:
jimport( 'joomla.version' );
...
$version = new JVersion();
...
if ($read_more && !empty($link)) {
$content .= "<p class=\"link\"><a href=\"".$link."\" title=\"".$title."\"";
if ($target_blank) {
$content .= ' target="_blank"';
}
if ($version->isCompatible(1.6)) {
$content .= ">".JText::_('COM_CONTENT_READ_MORE_TITLE')."</a></p>\n";
}
else {
if (!defined('_READ_MORE')) {
if (class_exists('JText')) {
define('_READ_MORE', JText::_('Read more...'));
} else {
define('_READ_MORE', 'Read more...');
}
}
$content .= ">"._READ_MORE."</a></p>\n";
}
}
jimport( 'joomla.version' );
...
$version = new JVersion();
...
if ($read_more && !empty($link)) {
$content .= "<p class=\"link\"><a href=\"".$link."\" title=\"".$title."\"";
if ($target_blank) {
$content .= ' target="_blank"';
}
if ($version->isCompatible(1.6)) {
$content .= ">".JText::_('COM_CONTENT_READ_MORE_TITLE')."</a></p>\n";
}
else {
if (!defined('_READ_MORE')) {
if (class_exists('JText')) {
define('_READ_MORE', JText::_('Read more...'));
} else {
define('_READ_MORE', 'Read more...');
}
}
$content .= ">"._READ_MORE."</a></p>\n";
}
}
Please Log in or Create an account to join the conversation.