about Adding different language support on a webpage
Posted: Mon Oct 16, 2006 2:53 am
i want to know what is the best approach (in terms of reducing development time, energy, code reusablity) to add different language support on a web page. so far i have followed two approaches.
1. creating different php script for different language declaring hundreads of variables that contain the texts(that need to be translated) and include that script to every pages of the site.
2. the second approach is to write an XML file that contain all the text and then translate them with name/value pair technique.
in these two approaches i have used google translator to translate to my desired language which is incredibly painful. So for these, none of the approaches seemed very much convincing.
can anyone show me a better approach on how to implement different language support on a web page?
Any kind of suggestion is warmly welcomed.
Thanks.
1. creating different php script for different language declaring hundreads of variables that contain the texts(that need to be translated) and include that script to every pages of the site.
2. the second approach is to write an XML file that contain all the text and then translate them with name/value pair technique.
in these two approaches i have used google translator to translate to my desired language which is incredibly painful. So for these, none of the approaches seemed very much convincing.
can anyone show me a better approach on how to implement different language support on a web page?
Any kind of suggestion is warmly welcomed.
Thanks.