Site hosted by Angelfire.com: Build your free website today!
Get Firefox
Get Mozilla
VisitorVisiteur :

Any Development

[HomeAccueil] > Tutorial

Tutorial

Multi language page with cssPage multi-lingue grâce aux css

[top]

To showing the content of this site what depends of the user language, I use the browser localization.

Pour afficher le contenu d'un site en fonction de la langue de l'utilisateur, je me base sur la localisation du browser.

navigator.language

When the page is loaded, I dynamicaly add a style for hiding other languages.

Au chargement de la page, j'ajoute un style en fonction de cette valeur qui cache les balises des autres langues.

It's working fine if you add in each tag with local content, the attribut "lang".

Pour que ça fonctionne, j'ai mis dans chaque balise à vocation multilingue l'attribut "lang".

For more information, see the source code of this page.

Pour plus d'informations, jetez un coup d'oeil sur le code source de la page.