Contact Form Multiple Language Web Site
Permalink 1 user found helpful
Hi,
i have created a multiple language web site, for each language i have a contact form.
I would like to know how i can rename the submit button for each language.
I have found the code ragarding this in the controller.php file but i can not figue out how to fix this for all the languages.
If someone is familiar with this i would appreciate if you could help me with this.
Thanks in advace
Kind Regards,
Ermin
i have created a multiple language web site, for each language i have a contact form.
I would like to know how i can rename the submit button for each language.
I have found the code ragarding this in the controller.php file but i can not figue out how to fix this for all the languages.
If someone is familiar with this i would appreciate if you could help me with this.
Thanks in advace
Kind Regards,
Ermin
If you have different pages for your different languages you could go ahead and make separate block types for each language.
Copy the /concrete/blocks/form directory into the /blocks/ directory and then rename the directory to something like form_french.
Then go into the controller.php file and change the class name from FormBlockController to FormFrenchBlockController.
Also just below that change the btTable from btForm to btFormFrench.
Then below that there is a function that returns the block name. Change the block name from Form to Form French.
Then of course, change the submit button text to your language of choice.
Next go into the db.xml file and change the table name from btForm to btFormfrench.
I think that should be it. Install your new block and use it on the appropriate page.
Repeat the above for each language. I'm certain there is a better way, but I just wanted to give you some kind of answer.
-guy