Hi,
Im trying to set up a form with multilangiage support, and I have read previous posts about it.
(http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=2&t=9752#9752 and http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=5&t=10092&st=0&sk=t&sd=a)
I asume the code I pasted works, because I get to see the form in the default language. Also, i tried pasting the echo code to receive the right case of my languages, but when i enter the echo bit of code the page shows up blank, it doesnt give me the case of the language. The eco code is:
and the code for the form is:
Is there a reason why i get a blank screen when i use the echo?
im using joomla 1.5.4, with joomfish 2.0 beta
Thanx
Im trying to set up a form with multilangiage support, and I have read previous posts about it.
(http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=2&t=9752#9752 and http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=5&t=10092&st=0&sk=t&sd=a)
I asume the code I pasted works, because I get to see the form in the default language. Also, i tried pasting the echo code to receive the right case of my languages, but when i enter the echo bit of code the page shows up blank, it doesnt give me the case of the language. The eco code is:
echo $lang->getName();?>
and the code for the form is:
<?php
$lang =& JFactory::getLanguage();
switch ( $lang->getName() ) {
case 'Spanish':
default:
?>
Spanish form code
<?php
break;
case 'English':
?>
English
<?php
break;
}
?>
Is there a reason why i get a blank screen when i use the echo?
im using joomla 1.5.4, with joomfish 2.0 beta
Thanx