Multilingual Contact Form

Help with problem solving.

Multilingual Contact Form

Postby aros33 » Fri Jan 20, 2012 7:38 am

Hi again,
I'm working in this multilingual project, English/Spanish. I've got the pages translated and setting different versions of the same theme for this purpose; so far so good.

Now the contact Form Blade, has the text embedded and the multi-theme solution doesn't work with it. Is there a easy way to create the multilingual solution?

I've been thinking in doing just the same thing you guys recommended with the themes and create a duplicate and use it only in the extra language (Spanish in this case).

If that's the only way to go, well, I'm working on it and tomorrow I'll post what I got... but if there's a way to do this without duplicating the original blade it'll be great since I expect to do tweaks of this kind often and I may need to look for a solution for more than two languages.

Thanks for checking this out.
aros33
 
Posts: 18
Joined: Tue Jan 17, 2012 2:11 am

Re: Multilingual Contact Form

Postby Adminer » Fri Jan 20, 2012 12:42 pm

aros33 wrote:Hi again,
I'm working in this multilingual project, English/Spanish. ... but if there's a way to do this without duplicating the original blade it'll be great since I expect to do tweaks of this kind often and I may need to look for a solution for more than two languages.


In this moment there is no simply solution for one single multilanguage contact blade pack.
Of course, it is posiible to write a simply php code to identify used themes in language to exchange the language string (or as an another blade pack) - but... the time ;-)
IMHO, easiest way now is to write a duplicate of the oryginal contact form blade for each single language, without duplicate function names there, or... you can rewrite php code in this existing single contact blade pack with another simply flag menu inside the form, to choose any language inside there. Users will can choose any language as they wants.

Another way is described here:
http://www.bitrepository.com/php-how-to ... bsite.html
http://wiki.modxcms.com/index.php/Multilanguage_eForm
So, contact form blade pack should be rewrited to use such method like this.

Regards
Adminer
 
Posts: 555
Joined: Wed Apr 08, 2009 9:52 pm
Location: Poland

Re: Multilingual Contact Form

Postby aros33 » Fri Jan 20, 2012 7:14 pm

Hi admin,

You're completely right, why I'm duplicating the contactForm blade if I can just replace the strings, it'll be like choosing a category before inserting the injector in the NewsViewer blade.

Some times I forget that there's more than one way to do one thing.

Thanks for the advice!
aros33
 
Posts: 18
Joined: Tue Jan 17, 2012 2:11 am


Return to Problems Using razorCMS

Who is online

Users browsing this forum: No registered users and 1 guest

cron