You are here: Multilanguage website « All PHP « IT news, forums, messages
Multilanguage website

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация