It is currently Tue Feb 07, 2012 8:06 am

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: how to create a template to support diffent languages?
PostPosted: Sat May 03, 2008 1:55 am 
Offline

Joined: Thu Apr 03, 2008 5:26 am
Posts: 3
I am doing a project, in which user first selects a languages,
and then the same html form written with selected language will be displayed. i.e. a user can decide to show the same form in English, French, and so on.

What I can think is I need to create a template html form
and several text xml files writen in different language.
then maybe I need to create a php file to parse the corresponding text xml file based on the language selected by users, and then combine the result to template form.

Since I am not familar with html and php, I do not know how to implent it in details. Can anybody give me a very simple example about how to create a template html and how to compine the parsed result to the template?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 11, 2008 4:55 am 
Offline

Joined: Sun May 02, 2004 11:34 pm
Posts: 6498
Location: toronto, canada
The way that phpmyadmin does it, is to hold each language in an file...all the field names are there and the correct language file gets included based on a user setting

When the page is generated it just pulls in the correct language file, and those values are plugged into the html being generated

_________________
Lostboy

Cat, the other other white meat

Please read Posting Etiquette before posting

You can always try Google


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron