Forums

Translate form?

serie3 24 Jul, 2007
Hello,

Someone know if I can translate a form of Chrono Forms? with Joomfish?
It is possible?

If not is possible, what can I do to show a diferent form in differents languages?

Thanks, excuse my English, I am spanish.
GreyHead 24 Jul, 2007
Hi Serie3,

I imagine that you could do this with JoomFish though I've never tried. I think that there is a post in the forums here is you search for it.

Otherwise you could set up the form to check the users language preference; or have several similar forms with different languages.

Bob
Max_admin 24 Jul, 2007
Hi,

You can use the variable $mosConfig_lang to check for the current running language and change form based on that, thats really too easy!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
mbsnake 31 Jul, 2007
Came across the same "problem". I solved it with checking the variable as described by admin and reloading a translated duplicate of the chronoforum.

<?
if (strcmp($GLOBALS["mosConfig_lang"],'english')==0)
  header("Location: ?option=com_chronocontact&chronoformname=engform2"«»);
?>
<br><br>Post edited by: admin, at: 2007/10/28 08:33
Max_admin 31 Jul, 2007
Thanks Mbsnake for sharing this!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
pino 02 Apr, 2008
thanks, looks like you solved my problem too. sorry i'm not a programmer, where do i have to put/change this code???

tanak you!
GreyHead 03 Apr, 2008
Hi pino,

I'm not sure, I think probably you put it at the beginning of the form code so that it will switch to the other version of the form automatically.

Bob
Max_admin 04 Apr, 2008
Hi Pino,

Something like this :


 <?
if (strcmp($GLOBALS["mosConfig_lang"],'english')==0){
?>
This is my English form code!!
<?php } ?>
 <?
if (strcmp($GLOBALS["mosConfig_lang"],'italian')==0){
?>
This is my Italian form code!!
<?php } ?>


Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.