The best way to do a multilingual form with Joomla 1.5?

Chacapamac 12 Aug, 2015
I have to make a form on a old Joomla 1.5 in 2 languages.

What are the best way to do that?
GreyHead 13 Aug, 2015
Hi Chacapamac,

You can use the Multi Language action in the Utilities actions group to translate strings like labels. Add one action for each language then add strings like this:
##name##=name
##name##=nom
and put ##name## in the element label. This will work for most visible text in the form.

Bob
Chacapamac 13 Aug, 2015
Thanks to answer me.

If I understand well…

In a “Label Text” I can put something like —> ##name##Votre Nom

and translate it in english by adding a “Multi Language action” (I guess that I put in the “OnLoad” action) with the language string “en-GB” and add here.
##name##=Your Name

Do I need to add the fr-FR Multi Language action for this to work properly?
GreyHead 13 Aug, 2015
Answer
Hi Chacapamac,

In the Label text just put ##name##

And, yes, add one Multi Language action for each language you want to use.

Bob
GreyHead 14 Aug, 2015
Hi Chacapamac,

Great,

FYI - you can use any strings in there. I use the ##name## instead of just name because it avoids errors and it makes clear if any translations are missing.

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