Ok i found how to make it work, with 1 snippet (eform), 2 tpl for form and 2 tpl for Report.
here is the solution:
eform call for every language :
[!eForm? &language=`(yams_mname)` &formid=`eFormContactForm_(yams_id)` &to=`email` &tpl=`eFormContactForm_(yams_id)` &report=`eFormContactReport_(yams_id)`!]
Chunk "eFormContactForm_fr" for tpl in french
if you use alias from YAMS, as i do in this case, you muste write form action="(yams_doc)". Otherwise you can use action="[~[*id*]~]" (as i read it on this thread :
http://modxcms.com/forums/index.php?topic=64814.0)
[+validationmessage+]
<form action="(yams_doc)" method="post" id="eFormContactForm_fr">
<input name="formid" type="hidden" value="eFormContactForm_fr" />
.......
</form>
Chunk "eFormContactForm_en" for tpl in english
[+validationmessage+]
<form action="(yams_doc)" method="post" id="eFormContactForm_en">
<input name="formid" type="hidden" value="eFormContactForm_en" />
.......
</form>
Chunk "eFormContactReport_en" for Report in english
Here is a mail from the website XXX, from english form
you can write whatever you want, just put the fields like [+name+]
Chunk "eFormContactReport_fr" for Report in french
Voici un mail depuis le site XXX, écrit avec le formulaire en français.
you can write whatever you want, just put the fields like [+name+]
And that’s all !
thanks again for helping me !
this forum is great, so when i can help a little bit...
do you think it’s possible to add this in the YAMS documentation, as a little example?