Posted: Sat May 03, 2008 12:55 am Post subject: how to create a template to support diffent languages?
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?
Joined: 02 May 2004 Posts: 5128 Location: toronto, canada
Posted: Sun May 11, 2008 3:55 am Post subject:
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
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 You cannot vote in polls in this forum