Open Source Services

Development Services and Products for Open Source e-Commerce Sites

 
Welcome, Guest
Please Login or Register.    Lost Password?

Add form for another language (French)
(1 viewing) (1) Guest
High priority support for Proforma (PF) v1.0 PLUS content management system for osCommerce.
Go to bottomPage: 1
TOPIC: Add form for another language (French)
#882
Add form for another language (French) 2 Years, 2 Months ago  
Hello,

Can someone advise how can I have form created for both English and French pages?
I added proforma files in include/language/french and admin part of it as well but it is showing the same form as I have in English - I would like to translate or create another form for French page.

How will I do that?

Thank you.
teacup
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/11/24 00:14 By teacup.
The administrator has disabled public write access.
 
#883
Re:Add form for another language (French) 2 Years, 2 Months ago  
Hi teacup

Thanks for the question.

The best way to do this is the following:

1) Create a new position with Position Manager called 'French Form' or something like that.

2) Add the new Proforma position code just below the position code for the English language form in the PHP file. Enclose the English position in an 'if' clause which only gets executed if the language stored in the $_SESSION array is English. Similarly, put the French form's position code within an 'if' clause that is only executed if the language in the $_SESSION array is French.

3) Create another form in Proforma - exactly like the first one, but in French.

4) Set it up in exactly the same way as the English one except give it a different name and use the newly created position.

Hope this helps.

Nick
hanuman
Moderator
Posts: 371
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1