(Même si cela vient de spip-en, je l'envoie vers spip-trad, car il s'agit
d'une question de trad.)
>> It would be good if possible to do an up-to-date
documentation with the
>> latest improvement to <INCLURE>. Namely,
>>
and Bealach replied:
I must be blind but I can't find the text -- do you mean the
following
paragraph needs ro be added in the <INCLUDE> article?
* possibilité d'appeler un squelette avec un paramètre lang=...
>>> <INCLURE(...){lang}> ou <INCLURE(...){lang=xx}>
fonctionnent et sont
>>> capables d'aller éventuellement chercher un squelette affiné par
>>> langue (toto.xx.html)
Well, you're not blind, but the documentation has not been updated in French
yet.
The nearest thing to "documentation" I can find is a message from Fil to
spip-dev in January:
- - - -
From: Fil <fil <at> rezo.net>
Subject: ! {lang} dans le contexte, l'inclusion etc
Newsgroups: gmane.comp.web.spip.devel
Date: Mon, 26 Jan 2004 18:07:10 +0100
Coucou,
petites modifs :
<INCLURE(haut.php3)> fait le truc normal (inclusion dans la langue par
défaut du site)
<INCLURE(haut.php3){lang=eo}> appelle l'inclusion en espéranto
<INCLURE(haut.php3){lang}> appelle l'inclusion dans la langue courante.
Par ailleurs les squelettes inclus bénéficient de la même technique de
sélection par langue (haut.fr.html) que les squelettes "globaux".
- - - - -
And the usefulness of it is illustrated by a message today, to spip-user:
From: Fil <fil <at> rezo.net>
Subject: Re: Chaines internationalisées dans un INCLURE
Newsgroups: gmane.comp.web.spip.user
Date: Wed, 07 Apr 2004 17:17:14 +0200
Je crée un site dont toutes les pages ont un même menu latérale. J'ai la
flemme de modifier dans un tas de pages, donc je le mets en «inclure».
Le prob. est que le site est multilingue, et les chaines
internationalisées (type <:plan_du_site:> ), qui sont traduites quand
elles sont dans le squelette de l'article ou rubrique, aparaissent
toujours dans la langue par défaut du site quand elles se trouvent dans
un inclure.
Ni
<INCLURE(col_droite.php3)>
Avec la version 1.7.1 presque terminée, <INCLURE(col_droite.php3){lang}>
devrait faire l'affaire
- - - -
I'm sure that with a bit of imagination you can turn that into
documentation!
Paolo