Multilanguage website
- From: Ken LE PRADO <ken@xxxxxxxxxxx>
- Date: Thu, 29 Sep 2005 11:20:19 +0200
Hello,
I would like to developpe multilanguage website (2 or 3 languages : es, fr, en), but I don't know which solution is the better for me :
Ex. for the _database_ : id_record date_save title_fr title_en title_es And I display the field that corresponds to the desired language
My bigger question is for _files_, here are my suggestions :
1. file with all translations some files contains all translations, where I include the good one : /lang/en.inc /lang/fr.inc /lang/es.inc
where each contains with the good translation : $text[1] = 'welcome'; And I print the good $text[];
Advantages : easy to implemant Disadvantages : a big site has big /lang/.inc files to include
2. one xml file per page, with translations inside index.php index_en.xml index_es.xml index_fr.xml Advantages : faster than the first solution Disadvantages : ???
3. make one page per language : index_en.php index_es.php index_fr.php
Advantages : Best view for robots Disadvantages : Huge to maintain
Thanks for your help Ken .
- Prev by Date: Re: What is the difference between php & asp?
- Next by Date: Re: OO email-class
- Previous by thread: what is keep this from working
- Next by thread: Pass values through a PHP form emailer
- Index(es):
Relevant Pages
|