Hi,
I have to build a multilingual contact form. How can I do?
I have to build a multilingual contact form. How can I do?
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:
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
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
Thanks🙂
Can I change languages ​​through Joomla override instead of "Locales"?
Can I change languages ​​through Joomla override instead of "Locales"?
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
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
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
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
Hi Simone,
Do you have the latest update ?
Best regards,
Max
Do you have the latest update ?
Best regards,
Max
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
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
This topic is locked and no more replies can be posted.