By wxiluo on
How to build a two-language website?
Like: When you enter www.XXXX.com,it will appear a language choosing page. And the data will save in two databases.(certainly using UTF-8)
I think that I need to edit the php files to achieve.
If someone can do this, please help me..
Comments
Two languages = Two websites.
I could be wrong but I think that it is a recommended to have your content in different languages on different pages. So what you could do is have your home page be the site where the user picks a language, and from there you can take them to a landing page in the language they picked. So there is no need to really modify a php file (the language on the page.tpl.php file up by the doc type should be changed). If you do not want your users to always have to pick a language every time you can use some php to set a cookie and next time the user goes to your home page they will be directed to the landing page of the language they picked.
http://drupal.org/project/i18
http://drupal.org/project/i18n
http://drupal.org/project/Modules/category/97
Live hard, Ride harder
Thanks~!
Those modules are useful~!
They will solve my problem I think~!
Thank you very much~!