Re: multilanguage site : how do you do? Site multilangue comment faites-vous?

From: Date: Thu, 05 Oct 2006 14:25:40 +0000
Subject: Re: multilanguage site : how do you do? Site multilangue comment faites-vous?
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-32927@lists.php.net to get a copy of this message
Hi Mathieu, We do this with by generating PHP files from Docbook XML, and then employing some simple PHP scripting, to direct people to the appropriate language version. See http://php.net/dochowto for a start. Regards, Gabor Hojtsy On Thu, 5 Oct 2006, Mathieu Fernandez wrote:
Hello, I'm French so excuse me for my english :o) I would like to know how you do to make a multilanguage site with a web adress like that :
//www.php.net/manual/*fr*/index.php for french //www.php.net/manual/*en*/index.php for english //www.php.net/manual/*es*/index.php for spanish
.... I know there is some differents method : - XSL/XML -PHP -etc I use PHP with differents files for the differents language : fr.php / en.php /es.php and I call the file I need. I can't have only 1 file for each language because they will be too big so I'm forced to have a PHP file in each folder of my site. So how I can have the name of the language on the web adress ? Please help me. Thanks you in advance. ****************************************************************************************************************************** Bonjour, Je voudrais savoir comment vous faîtes pour avoir une adresse Internet comme ça :
//www.php.net/manual/*fr*/index.php for french //www.php.net/manual/*en*/index.php for english //www.php.net/manual/*es*/index.php for spanish
.... Je sais qu'il existe plusieurs méthode : - XSL/XML -PHP -etc J'utilise PHP avec des fichiers differents selon la langue utilisé : fr.php / en.php /es.php et j'appelle ensuite le fichier dont j'ai besoin. Je ne peux pas avoir 1 seul fichier pour chaque langue car il serait trop gros donc je suis obligé d'avoir un fichier PHP pour chaque dossier du site. Donc comment pourrais-je faire pour afficher le nom de la langue dans la barre d'adresse? S'il vous plaît, aidez moi. Merci d'avance.


« previous php.mirrors (#32927) next »