newsNews: Article: i18n via content negotiation at home.gna.org

 
 
Show feedback again
Latest News
Gna! hardware failure posted by zerodeux, Tue 14 Feb 2012 06:55:00 PM UTC - 1175 replies
20 minutes downtime posted by beuc, Thu 26 Jan 2012 07:59:58 PM UTC - 462 replies
Subversion upgrade posted by beuc, Sun 06 Nov 2011 11:37:27 AM UTC - 690 replies
Upgrades posted by beuc, Sun 19 Dec 2010 07:59:58 PM UTC - 644 replies
Gna! frontend back - change your passwords posted by beuc, Thu 02 Dec 2010 10:24:16 PM UTC - 524 replies
[110 news in archive]

Article: i18n via content negotiation at home.gna.org

Item posted by Mathieu Roy <yeupou> on Wed 03 Mar 2004 07:34:36 PM UTC.

How do I internationalize my website hosted by Gna! at http://home.gna.org ? The easier solution is to use the server content negociation, something pretty standard with apache nowadays.

To add a translation, you just have to add a file called like $filename.$lang.html. For instance, the German translation of the index file would be named index.de.html. When a German user will browse your index page, when asking for /index, the apache server will return him the German page, index.de.html.

It means that you should advertise pages with .lang.html only if you want to point to a specific translation, and advertise pages like /blabla (for blabla.$lang.html) the rest of the time.

http://www.debian.org/ is an example of content negotiation usage for internationalization: all the internal links are like /social_contract, always redirecting you to the translated file. But you can access translated versions with direct pointers like /social_contract.es.html (Spanish) and /social_contract.de.html (German).

Apart from that, we advise you to take care of outdated translations. You can can use the CVS tags like $Date: $ or $Id: $ to print inside your pages version information, in a warning to users.

(We assume that you already used your homepage area, managed via CVS, that everything worked well. If it is not the case, please read the related FAQ entries first)

This article comes from the FAQ entry: https://gna.org/faq/?question=Homepage_Server__--__How_do_I_internationalize_my_website.txt

Comments:

Amandine (posted by vincent, Sun 19 May 2013 12:44:27 PM UTC)

http://femme-amour-seduction-homme.fash.fr/
http://www.fash.fr/
http://www.fash.fr/comment-draguer-une-fille/
http://www.fash.fr/comment-draguer-un-mec/
http://www.fash.fr/cunnilingus/
http://www.fash.fr/267-conseils-pour-devenir-le-meilleur-coup-de-sa-vie/
http://www.fash.fr/livres-pour-les-hommes/
http://www.fash.fr/comment-faire-lamour-a-une-fille/
http://www.fash.fr/comment-faire-lamour-a-une-femme/
http://www.fash.fr/comment-reconquerir-son-ex-femme/
http://www.fash.fr/livres-pour-les-femmes/
http://www.fash.fr/comment-recuperer-son-ex-copain/
http://www.fash.fr/comment-seduire-une-fille-au-telephone/
http://www.fash.fr/les-secrets-dun-homme-seduisant/
http://www.fash.fr/comment-devenir-un-tombeur-de-femmes/
http://www.fash.fr/comment-seduire-une-femme/
http://www.fash.fr/comprendre-les-femmes/
http://www.fash.fr/comment-faire-lamour-a-un-homme/
http://www.fash.fr/fellation/
http://www.fash.fr/pourquoi-les-hommes-trompent-leur-femme/
http://www.fash.fr/manque-de-confiance-en-soi/
http://www.fash.fr/comment-avoir-confiance-en-soi/
http://www.fash.fr/comment-trouver-lamour/
http://www.fash.fr/comment-aborder-un-homme/
http://www.fash.fr/comment-seduire-un-homme/
http://www.fash.fr/comment-faire-craquer-un-homme/
http://www.fash.fr/comment-faire-rever-une-femme/
http://www.fash.fr/comment-maigrir/
http://www.fash.fr/comment-etre-belle-je-suis-moche/
http://www.fash.fr/258-conseils-pour-garder-un-homme-grace-au-sexe/
http://www.fash.fr/comment-aborder-une-fille/
http://www.fash.fr/comment-reconnaitre-un-homme-amoureux/
http://www.fash.fr/les-signes-et-gestes-dune-femme-amoureuse/
http://www.fash.fr/comment-faire-lamour-a-un-homme-la-premiere-fois/
http://www.fash.fr/amour-a-distance/
http://www.fash.fr/comment-rendre-un-homme-amoureux/
http://www.fash.fr/les-positions-preferees-des-hommes-sondage/
http://www.fash.fr/preservatif/
http://www.fash.fr/femme-nulle-au-lit/
http://www.fash.fr/cest-quoi-lamour/
http://www.fash.fr/comment-faire-lamour/
http://www.fash.fr/jalousie/
http://www.fash.fr/rupture-amoureuse/
http://www.fash.fr/meetic/
http://www.fash.fr/facebook/
http://www.fash.fr/adopteunmec/
http://www.fash.fr/ce-que-veulent-les-hommes/
http://www.fash.fr/ce-que-veulent-les-femmes/
http://www.fash.fr/relation-amoureuse/
http://www.fash.fr/comment-embrasser-une-fille/
http://www.fash.fr/comment-recuperer-son-ex/
http://www.fash.fr/comment-savoir-sil-maime/
http://www.fash.fr/forum/
http://www.fash.fr/sondage-quest-ce-qui-vous-attire-chez-un-homme/
http://www.fash.fr/cul/
http://www.fash.fr/techniques-pour-seduire-un-homme/
http://www.fash.fr/femme-cougar/
http://www.fash.fr/plantes-et-aliments-aphrodisiaques-naturels/
http://www.fash.fr/mentions-legales/
http://www.fash.fr/a-propos/
http://www.fash.fr/partenariats/
http://www.fash.fr/comment-rendre-une-femme-amoureuse/
http://www.fash.fr/comment-oublier-son-ex/
http://www.fash.fr/ce-que-veulent-les-femmes-chez-un-homme/
http://www.fash.fr/pourquoi-les-femmes-aiment-les-bad-boys/
http://www.fash.fr/comment-garder-son-homme/
http://www.fash.fr/comment-savoir-si-elle-maime/
http://www.fash.fr/sondage-comment-imaginez-vous-vos-futurs-relations-avec-les-filles/
http://www.fash.fr/combien-de-fois-faites-vous-lamour-par-mois/
http://www.fash.fr/les-plus-belles-femmes-du-monde/
http://www.fash.fr/avez-vous-besoin-daimer-pour-faire-lamour/
http://www.fash.fr/comment-attirer-un-homme/
http://www.fash.fr/comment-rendre-un-homme-jaloux/
http://www.fash.fr/articles-femmes/attirer-draguer-seduire/
http://www.fash.fr/articles-hommes/attirer-et-seduire/
http://www.fash.fr/livres/
http://www.fash.fr/articles-hommes/psychologie-feminine/
http://www.fash.fr/articles-femmes/psychologie-masculine/
http://www.fash.fr/articles-femmes/la-relation-amoureuse/
http://www.fash.fr/articles-hommes/relation-durable/
http://www.fash.fr/articles-couple/rupture-amoureuse/
http://www.fash.fr/articles-couple/sexualite/
http://www.fash.fr/articles-femmes/sexualite-et-amour/
http://www.fash.fr/articles-hommes/sexualite-et-sensualite/
http://www.fash.fr/articles-couple/societe/
http://www.fash.fr/sondages/
http://www.fash.fr/author/admin/

[ Reply ]


   

 

Start a New Thread:

You could post if you were logged in
Show feedback again

Back to the top


Powered by Savane 3.1-cleanup