Buy Now
Sign in

ChronoForms v6 Multilanguage

F
francescocartei
Hi,
I have to build a multilingual contact form. How can I do?
admin
Hi Armand,

Go under the "Locales" tab, set your language tag, say it_IT, fr_FR or de_DE (must be in this format) then write the language strings:

test=My test string

Now in your form field or email or anywhere you can use {l:test} and that will be replaced by "My test string", assuming that the active site language is either it_IT, fr_FR or de_DE

Best regards,
Max
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
F
francescocartei
Thanks
Can I change languages ​​through Joomla override instead of "Locales"?
admin
Hi Armand,

The Joomla override requires a PHP function call in order to get the translation, this is not possible to use every where in your form (it can be done through a PHP action call but this is an unnecessary step), so its better to use the built in Locales feature.

Best regards,
Max
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
F
Folk86
Hi Max,

the translation function work in dropdown element?

I do this:
1) setup the en_GB locale

CHOOSE_POSITION_FIRST=Teacher/Professor
CHOOSE_POSITION_SECOND=Other school staff
CHOOSE_POSITION_THIRD=Parent or legal guardian of the minor

2) put in on dropdown element this "code"

insegnante={l:CHOOSE_POSITION_FIRST}
altro_personale={l:CHOOSE_POSITION_SECOND}
genitore={l:CHOOSE_POSITION_THIRD}

but the result is (see image attached)...


Thank you in advice!

Simone
Attachments
Snap_2017-07-04_at_09.41.03.png
Snap_2017-07-04_at_09.41.03.png
(6.44 KiB)
195 Downloads/Views
admin
Hi Simone,

Do you have the latest update ?

Best regards,
Max
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
F
Folk86
Hi Max,

your software is ok, I made a mistake. When I recharged the web page the language has changed to one without translation. I'm sorry.
Yesterday I saw my error but I could not write in this forum ( "max 1 post not approved" policy ).


Thank you!
Have a nice day!

Simone