Confirmation Page not translating

Laus 03 Oct, 2011
I cannot get my confirmation page to show the selected language, I have added all the fields to Multi Language and the form works great but on submit the Confirmation Page appears in the default language.

Both plug-ins are enabled and all the text is translated.

I am using the latest release validated version of ChronoForms on J1.5.23

Pleas help! Got 2 days to complete and this is the last hurdle. TIA.

Can't show example page as the form is only available to registered users, but if you can help I will add account for you to view.
GreyHead 04 Oct, 2011
Hi Laus,

I'm not sure that the Multi-Language plug-in handles other plug-ins like that :-( I'd use condition PHP in the Confirmation page and set it up that way.

Just checking - this is CFv3? Warning - The Confirmation page plug-in is buggy :-(

Bob
Laus 05 Oct, 2011
So I could use:

<?php if ($this->language =='en-gb') { echo 'Name: '; }?><?php  if ($this->language =='cy-gb') { echo 'Enw: '; }?>


For each field label?
GreyHead 05 Oct, 2011
Hi Laus,

That would work but is long winded. I'd probably use something like this:
<?php
$lang =& JFactory::getLanguage();
switch ( $lang->getTag ) {
  case 'en-gb':
  default:
    $l_name = 'Name';
    $l_email = 'Email';
    &l_city = 'City';
    . . .
    break;
  case 'cy_gb':
    $l_name = 'Enw';
    $l_email = 'E-bost';
    &l_city = 'Dinas';
    . . .
    break;
}
?>
. . .
<label><?php echo $l_name; ?></label>

If the lists are really long or are shared between several forms then you can use included files to load them.

Bob
This topic is locked and no more replies can be posted.