|
From: Fil <fil@...>
Subject: Re: how to write the curent url Newsgroups: gmane.comp.web.spip.english Date: 2008-06-26 22:55:37 GMT (1 year, 1 week, 5 hours and 2 minutes ago)
Our R&D department in Loir-et-Cher, France has worked closely with our
Features&Testing Department in Sao Paulo, Brazil, an we came up with a
fully tested super-strong solution to all problems.
Here it is for your enjoyment.
<BOUCLE_langues(ARTICLES){fusion lang}{par lang}>
<a rel="alternate" hreflang="#LANG"
href="[(#REM|sinon{spip.php?action=cookie}|parametre_url{var_lang,#LANG})]&url=<?php
echo urlencode(self()); ?>">[(#LANG|traduire_nom_langue)]</a>
</BOUCLE_langues>
If you don't want to choose your languages with a BOUCLE but manually,
or maybe include images as links, you can do so:
<a rel="alternate" hreflang="pt_br"
href="[(#REM|sinon{spip.php?action=cookie}|parametre_url{var_lang,pt_br})]&url=<?php
echo urlencode(self()); ?>"><img width="20" height="20"
alt="Português" src="squelettes/img/0lang_pt_br.gif"/></a>
<a rel="alternate" hreflang="es"
href="[(#REM|sinon{spip.php?action=cookie}|parametre_url{var_lang,es})]&url=<?php
echo urlencode(self()); ?>"><img width="20" height="20" alt="Espanhol"
src="squelettes/img/0lang_es.gif"/></a>
-- Fil & Tereza
|
|
|