Hi there
We are using Chronoforms V3.1 in Joomla 1.5. We are providing forms in English and French. I am able to show the French version by using Mutlilanguage option of that form. My question is that in English we are using back ground image for the form which would have text in english(back ground iamge). How to replace this image in french version? Any ideas please?
Hi kumarangopi,
If you are adding the image in the Form HTML then you can set the image name (or the path to the image with the multi-language plug-in.
Bob
Bob:
Thanks for your reply. I have tried following ways but didnt work:
Method 1:
In english box:
enter-to-win-bg=enter-to-win-bg
In french box:
enter-to-win-bg=you-could-win-fr
Method 2:
In english box:
enter-to-win-bg.jpg=enter-to-win-bg.jpg
In french box:
enter-to-win-bg.jpg=you-could-win-fr.jpg
Any ideas please?
Hi kumarangopi,
Where do you have the CSS?
CSS in a Load CSS action in the form On Load event is 'translated' correctly.
Bob
Bob:
We have added layout.css. Please suggest how to add the same in form html and if we add like that image replace works well?
Thanks
Hi kumarangopi,
Use a Load CSS action in the form On Load event.
Bob
Bob:
You mean onload event for html body like below:
<body onload="load()">
or
<form onLoad=""id="Form1">
Hi kumarangopi ,
No, neither of those. I mean the On Load event in your form. It's on the Code tab is you are using the Easy Form Wizard; the Events tab if you use the Advanced Wizard.
Bob
Hi kumarangopi,
What is the order of the actions in the On Load event. I think it needs to be:
Multi-language action(s)
Load CSS
Show HTML
Bob
Bob
Hi kumarangopi ,
My apologies, I had forgotten that you were using ChronoForms v3.1 - it's a bit old now. In that case this method won't work (it needs CFv4).
Instead you have to use PHP in the CSS box to check the language and show the correct CSS.
Apologiea again.
Bob
Bob:
Not a problem. I would use PHP and change CSS or use Image src directly instead of CSS.
Thanks a lot for your continuous reply. I appreciate your commitment.