Hi, I have a problem with the translation of "You can not re-register while you are already signed in" on cf_joomla_registration.php
My site is in Italian and English, how can I put a string of translation?
Or otherwise how can I fix this?
$user = JFactory::getUser();
$db =& JFactory::getDBO();
if ( ($user->id) && ($mainframe->isSite()) ) {
$html_string = 'You can not re-register while you are already signed in';
}
return $html_string ;
My site is in Italian and English, how can I put a string of translation?
Or otherwise how can I fix this?
Hi neviomaria ,
Change this function to
Bob
Change this function to
function onload( $option, $row, $params, $html_string )
{
global $mainframe;
$user = JFactory::getUser();
$db =& JFactory::getDBO();
if ( ($user->id) && ($mainframe->isSite()) ) {
$html_string = JText::_('NO_REREGISTER');
}
return $html_string ;
}
Then add two language files: In languages/en_GB add en-GB.com_chronocontact.ini with NO_REREGISTER=You can not re-register while you are already signed in
and in languages/it-IT add it-IT.com_chronocontact.ini with NO_REREGISTER=Non è possibile registrare nuovamente mentre si è già firmato a
Bob
This topic is locked and no more replies can be posted.