Forums

multi language thank-you message

abennen 07 May, 2012
I have a contact form where I use 2 Multi Language events on the 'on load' in order to translate the labels in Dutch and English. That works really great!

Now I would like to have the following items translated:
1. thank you message
2. email with the information of the form sent as a copy to the adressee
3. error message

I've tried to do something with the multi language events on the 'on submit' but I didn't succeed. I also use the action 'debugger' to get more information about e.g. the thank you message, but that doesn't give me some information I can work with/I can understand.
abennen 08 May, 2012
Is there nobody who can help me with this issue?
Max_admin 09 May, 2012
Hello,

The thank you message action will translate the data in the same event only, if you need to translate one of the submit actions contents then you need to add a new MultiLanguage action there.

Which error messages do you need translated ? if its a server side message then it will be translated using the ML action, but if its Javascript then you will need to add a manual message using the "Field title" which you may then translate.

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
abennen 14 May, 2012
I've attached a screenshot of the events of my form. I would like to translate at least three items on the 'On submit' event, so:
1. Email - (5)
This is a mail to the sender with a copy of the information he/she filled in on the form. The template is automatically generated, so it is a table.

2. Email - (8)
This is a mail to the sender with a message in the template without using 'Generate Auto Template'. Next to the message in the template I would like to translate the subject of the mail as well.

3. Show Thanks Message (6)
This is the message which appears after clicking the 'Send' button. I don't have to explain this to you ;-) I guess.

So, in all 3 cases I would like to have the mails/messages dependend on the language the user uses.

As you can see I used the Multi Language on the 'On Load' event, but I really do not know how to use it on the 'On Submit' event in relation with the Emails and message I mentioned.
GreyHead 15 May, 2012
Hi abennen,

As the the text is short the easiest way is to copy the Multi-lanugage actions into the beginning of the On Submit event. They will work in the same way. You can add any new entries that are needed. You will need to make sure that each entry stays on one line though so, for example, the thank you message becomes something like:
#DANK#=,<br /><br />hartelijk dank . . . op.<br/><br />#onderwerp#

with this in the action
{naam}#DANK#


If you have much longer or more complex texts to translate then you can use PHP to switch between different language versions, or to include different language files when needed.

Bob
abennen 16 May, 2012
thanks for the clear answer. I will try this solution.
This topic is locked and no more replies can be posted.