tb_contact form using twice on one site

Feed 3 posts, 2 voices

Avatar
12 posts

Hello.
Who can explain me how can i use tb_contact form twice on my site? I have 2 language versions EN and RU. And for both of them i need contact form one whith english fields (name, email, etc.) and another with russians fields (имя, емайл, etc.)
Any ideas?

 
Avatar
12 posts

Anybody can help in this situation?

 
Avatar
1493 posts

I’ve made an i18n version of the TB Contact Form which you can grab from here.

It might help you with your dilemma. You can make an ru-message.php file for it, and serve up the right one to the right viewers … I hope! (Note that the fr-message.php file included is for illustrative purposes only, and I hope no francophones are offended!)

This is as far as my tiny brain has got, though.

Edit – it looks like there might be an official version with i18n lurking somewhere. If Linkable sees this, perhaps he could comment?

 
Avatar
12 posts

thanks for reply, David.
But i did it by another way. Maybe it’s not the best way, but it works!
I just add test for plugin name and for some functions in index.php of plugin.
And now i have 2 plugins in backend/administration: tb_contactform and tb_contactformtest.

Resolved