how to create a template to support diffent languages?
Posted: Fri May 02, 2008 5:58 pm
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.
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.