|
Posted by Ken LE PRADO on 09/29/05 12:20
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
[Back to original message]
|