Forums

How to: ChronoForms and Multi Language Translation

Sevenhelmets 23 Dec, 2009
Hi folks

I'm a newbie at this (installed ChronoForms yesterday) and I can barely programme, but I noticed a LOT of people seem to be loosing their cool when it comes to making the Multi Language translation plug-in work, how it works, and whether it can work with JoomFish or not etc. So, I thought I'd write a quick guide, on how to get it working nicely.

STEP 1
I got mine working with JoomFish installed. The translation isn't done by JoomFish, it's done within the Multi Language plugin. In my case, my site only needs to support 2 languages - English and Japanese. In any case, make sure you have JoomFish installed (it'll be your "language switcher") and of course ChronoForms the component. I also have the module and mambot installed, but these aren't essential.

STEP 2
Read the forum post here http://www.chronoengine.com/forums.html?cont=posts&f=9&t=15768&hilit=chronoforms+joomfish. Install GreyHead's SECOND version of the plug-in (he's got 2 there, the second one has a fix if your site only has 2 languages). This version of the plug-in is MUCH better than the one from the official downloads page. It has a "help" section, which did as advertised, and "helped" me a lot.

STEP 3
Follow GreyHead's notes, they should make sense. Talking about the "key phrase", from your form HTML code, (here is what mine looks like):

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 70px;">Name</label>
    <input class="cf_inputbox required" maxlength="50" size="20" title="Name" id="text_0" name="text_0" type="text" />
  
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_password">
    <label class="cf_label" style="width: 70px;">Email</label>
    <input class="cf_inputbox required" maxlength="50" size="20" title="Email" id="text_3" name="text_1" type="password" />
    
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_password">
    <label class="cf_label" style="width: 70px;">Password</label>
    <input class="cf_inputbox required" maxlength="50" size="20" title="Password" id="text_4" name="text_2" type="password" />
    
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_button">
    <input value="Register" name="button_6" type="submit" />
  </div>
  <div class="cfclear"> </div>
</div>


In my case the "key phrases" were:

"Name"
"Email"
"Password"
"Register"


So therefore, in the translation strings, for the base English text:

Name=Name
Email=Email
Password=Password
Register=Register


Then, for my Japanese translation:

Name=名前
Email=メール
Password=パスワード
Register=登録する


All that's left to do is ACTIVATE the Multi Language plug-in (each form must activate individually), and you are good to go.
GreyHead 23 Dec, 2009
Hi Sevenhelmets,

Thanks for this - it's always reassuring when someone else gets this stuff to work OK :-)

The lstest version of the plugin will also work with ChronoForms error messages (the messages you see when imagevalidation or serverside validation fail).

Bob
Sevenhelmets 23 Dec, 2009
Trust me, after a few hours of dithering around with it, it was reassuring for me too! 🤣

Thanks for reminding me, now I'll go off and get those translated as well.
This topic is locked and no more replies can be posted.