WS and added revision tags

This commit is contained in:
didou
2004-05-23 15:44:59 +00:00
parent 7f504b740f
commit c060c07ab8
12 changed files with 872 additions and 853 deletions

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
<sect1 id="language.function.capture">
<sect1 id="language.function.capture">
<title>capture</title>
<para>
Capture est utilis<69> pour r<>cup<75>rer la sortie d'<27>l<EFBFBD>ments dans une variable
@@ -52,7 +52,7 @@
</programlisting>
</example>
</para>
</sect1>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
<sect1 id="language.function.config.load">
<sect1 id="language.function.config.load">
<title>config_load</title>
<informaltable frame="all">
<tgroup cols="5">
@@ -124,7 +124,7 @@
]]>
</programlisting>
</example>
</sect1>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
<sect1 id="language.function.foreach">
<sect1 id="language.function.foreach">
<title>foreach,foreachelse</title>
<informaltable frame="all">
<tgroup cols="5">
@@ -71,8 +71,8 @@
valeur n'est pr<70>sente dans la variable donn<6E>e <20> l'attribut
<emphasis>from</emphasis>.
</para>
<example>
<title>foreach</title>
<example>
<title>foreach</title>
<programlisting>
{* Cet exemple affiche toutes les valeurs du tableau $custid *}
@@ -85,10 +85,10 @@ SORTIE:
id: 1000&lt;br&gt;
id: 1001&lt;br&gt;
id: 1002&lt;br&gt;</programlisting>
</example>
</example>
<example>
<title>foreach key</title>
<example>
<title>foreach key</title>
<programlisting>
{* key contient la clef de chaque <20>l<EFBFBD>ment parcouru
@@ -113,7 +113,7 @@ portable: 3&lt;br&gt;
tel: 555-4444&lt;br&gt;
fax: 555-3333&lt;br&gt;
portable: 760-1234&lt;br&gt;</programlisting>
</example>
</example>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<sect1 id="language.function.if">
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
<sect1 id="language.function.if">
<title>if,elseif,else</title>
<para>
l'instruction if dans Smarty dispose de la m<>me flexibilit<69> que l'instruction
@@ -14,8 +15,8 @@
des op<6F>rateurs conditionnels valides, et doivent obligatoirement <20>tre
s<>par<61>s des autres <20>l<EFBFBD>ments par des espaces.
</para>
<example>
<title>Instruction if</title>
<example>
<title>Instruction if</title>
<programlisting>
{if $name eq "Fred"}
Bienvenue, Monsieur.
@@ -78,7 +79,7 @@
{if $var is even by 3}
...
{/if}</programlisting>
</example>
</example>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<sect1 id="language.function.include.php">
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
<sect1 id="language.function.include.php">
<title>include_php</title>
<informaltable frame="all">
<tgroup cols="5">
@@ -80,8 +81,8 @@
<para>
L'objet Smarty est disponible en tant que $this dans le script PHP inclus.
</para>
<example>
<title>fonction include_php</title>
<example>
<title>fonction include_php</title>
<programlisting>
load_nav.php
-------------
@@ -106,7 +107,7 @@ index.tpl
{foreach item="curr_section" from=$sections}
&lt;a href="{$curr_section.url}"&gt;{$curr_section.name}&lt;/a&gt;&lt;br&gt;
{/foreach}</programlisting>
</example>
</example>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<sect1 id="language.function.include">
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
<sect1 id="language.function.include">
<title>include</title>
<informaltable frame="all">
<tgroup cols="5">
@@ -56,15 +57,15 @@
qui d<>finit une variable de template dans laquelle la sortie de
<emphasis>include</emphasis> sera stock<63>e plut<75>t qu'affich<63>e.
</para>
<example>
<title>fonction include</title>
<example>
<title>fonction include</title>
<programlisting>
{include file="header.tpl"}
{* Le corp du template va ici *}
{include file="footer.tpl"}</programlisting>
</example>
</example>
<para>
Vous pouvez <20>galement passer des variables au template inclus
sous forme d'attributs. Les variables pass<73>es au template par ce moyen
@@ -72,22 +73,22 @@
pass<73>es en tant qu'attribut remplacent les variables d<>j<EFBFBD> d<>finies,
qui auraient le m<>me nom.
</para>
<example>
<title>fonction include, passage de variables</title>
<example>
<title>fonction include, passage de variables</title>
<programlisting>
{include file="header.tpl" title="Menu principal" table_bgcolor="#c0c0c0"}
{* Le corps du template vient ici *}
{include file="footer.tpl" logo="http://mon.domaine.com/logo.gif"}</programlisting>
</example>
</example>
<para>
Utilisez la syntaxe <link
linkend="template.resources">ressource template</link> pour inclure
des fichiers situ<74>s en dehors du r<>pertoire $template_dir.
</para>
<example>
<title>fonction include, exemple de ressource template</title>
<example>
<title>fonction include, exemple de ressource template</title>
<programlisting>
{* chemin absolu *}
{include file="/usr/local/include/templates/header.tpl"}
@@ -100,7 +101,7 @@
{* inclusion d'une ressource template "db" *}
{include file="db:header.tpl"}</programlisting>
</example>
</example>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:

View File

@@ -1,6 +1,17 @@
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/designers/language-builtin-functions/clean.php on line 56
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/designers/language-builtin-functions/clean.php on line 56
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/designers/language-builtin-functions/clean.php on line 56
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/designers/language-builtin-functions/clean.php on line 56
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/designers/language-builtin-functions/clean.php on line 56
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<sect1 id="language.function.insert">
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
<sect1 id="language.function.insert">
<title>insert</title>
<informaltable frame="all">
<tgroup cols="5">
@@ -68,12 +79,12 @@
depuis un fichier de configuration), et <20> besoin d'un appel de
fonction pour r<>cup<75>rer le contenu du bandeau.
</para>
<example>
<title>function insert</title>
<example>
<title>function insert</title>
<programlisting>
{* exemple de r<>cup<75>ration d'un bandeau publicitaire *}
{insert name="getBanner" lid=#emplacement_bandeau# sid=#id_site#}</programlisting>
</example>
</example>
<para>
Dans cet exemple, nous utilisons le nom getBanner et lui passons les
param<61>tres #emplacement_bandeau# et #id_site#. Smarty va rechercher une
@@ -120,24 +131,24 @@
la m<>t<EFBFBD>o, les r<>sultats de recherche, retours utilisateurs, etc.
</para>
</note>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<sect1 id="language.function.ldelim">
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
<sect1 id="language.function.ldelim">
<title>ldelim,rdelim</title>
<para>
ldelim et rdelim sont utilis<69>s pour afficher les d<>limiteurs en tant
@@ -8,8 +9,8 @@
toujours d'interpr<70>ter le contenu entre les d<>limiteurs, c'est donc
une fa<66>on d'afficher ces derniers sans interf<72>rer avec Smarty.
</para>
<example>
<title>ldelim, rdelim</title>
<example>
<title>ldelim, rdelim</title>
<programlisting>
{* Affiche les d<>limiteurs de template *}
@@ -19,7 +20,7 @@
SORTIE:
{nomFonction} est la fa<66>on dont sont appel<65>es les fonctions dans Smarty !</programlisting>
</example>
</example>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<sect1 id="language.function.literal">
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
<sect1 id="language.function.literal">
<title>literal</title>
<para>
Les balises "literal" permettent <20> un bloc de donn<6E>es d'<27>tre pris tel
@@ -10,8 +11,8 @@
entre les balises {literal}{/literal} ne sera pas interpr<70>t<EFBFBD>, et
affich<63> comme du contenu statique.
</para>
<example>
<title>balises literal</title>
<example>
<title>balises literal</title>
<programlisting>
{literal}
&lt;script language=javascript&gt;
@@ -30,7 +31,7 @@
&lt;/script&gt;
{/literal}</programlisting>
</example>
</example>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<sect1 id="language.function.php">
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
<sect1 id="language.function.php">
<title>php</title>
<para>
Les balises PHP permettent de rajouter du code PHP directement dans le
@@ -9,15 +10,15 @@
utilisateurs avanc<6E>s seulement, son utilisation n'est normalement pas
n<>cessaire.
</para>
<example>
<title>balises php</title>
<example>
<title>balises php</title>
<programlisting>
{php}
// inclusion directe d'un script PHP
// depuis le template.
include("/path/to/display_weather.php");
{/php}</programlisting>
</example>
</example>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<sect1 id="language.function.section">
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
<sect1 id="language.function.section">
<title>section,sectionelse</title>
<informaltable frame="all">
<tgroup cols="5">
@@ -93,8 +94,8 @@
est ex<65>cut<75> lorsqu'aucune valeur n'est trouv<75>e dans la variable <20>
parcourir.
</para>
<example>
<title>section</title>
<example>
<title>section</title>
<programlisting>
{* Cet exemple va afficher toutes les valeurs du tableau $custid *}
@@ -107,10 +108,10 @@ SORTIE:
id: 1000&lt;br&gt;
id: 1001&lt;br&gt;
id: 1002&lt;br&gt;</programlisting>
</example>
</example>
<example>
<title>section, variable de parcours</title>
<example>
<title>section, variable de parcours</title>
<programlisting>
{* La variable de parcours d<>termine uniquement le nombre de fois que nous allons
rentrer dans la boucle. Vous pouvez acc<63>der <20> toutes les variables du template
@@ -139,10 +140,10 @@ id: 1002&lt;br&gt;
nom: Jane Munson&lt;br&gt;
addresse: 5605 apple st&lt;br&gt;
&lt;p&gt;</programlisting>
</example>
</example>
<example>
<title>nom de section</title>
<example>
<title>nom de section</title>
<programlisting>
{* Le nom de la section peut <20>tre ce que vous voulez,
et est utilis<69> pour r<>f<EFBFBD>rencer les donn<6E>es depuis la section. *}
@@ -152,10 +153,10 @@ addresse: 5605 apple st&lt;br&gt;
address: {$addresses[monTableau]}&lt;br&gt;
&lt;p&gt;
{/section}</programlisting>
</example>
</example>
<example>
<title>sections imbriqu<71>es</title>
<example>
<title>sections imbriqu<71>es</title>
<programlisting>
{* Les sections peuvent <20>tre imbriqu<71>es <20> un nombre de niveaux illimit<69>.
Gr<47>ce aux sections imbriqu<71>es, vous pouvez acc<63>der <20> des structures de donn<6E>es
@@ -196,10 +197,10 @@ telephone: 555-555-5555&lt;br&gt;
telephone portable: 555-555-5555&lt;br&gt;
e-mail: jane@mydomain.com&lt;br&gt;
&lt;p&gt;</programlisting>
</example>
</example>
<example>
<title>Sections et tableaux associatifs</title>
<example>
<title>Sections et tableaux associatifs</title>
<programlisting>
{* Exemple d'affichage d'un tableau associatif dans une section *}
{section name=client loop=$contacts}
@@ -224,12 +225,12 @@ nom: Jane Munson&lt;br&gt;
telephone: 555-555-5555&lt;br&gt;
portable: 555-555-5555&lt;br&gt;
e-mail: jane@mydomain.com&lt;p&gt;</programlisting>
</example>
</example>
<example>
<title>sectionelse</title>
<example>
<title>sectionelse</title>
<programlisting>
{* sectionelse est ex<65>cut<75> s'il n'existe aucune valeur dans idClient *}
{section name=client loop=$idClient}
@@ -237,7 +238,7 @@ e-mail: jane@mydomain.com&lt;p&gt;</programlisting>
{sectionelse}
Aucune valeur dans $idClient.
{/section}</programlisting>
</example>
</example>
<para>
Les sections ont leur propre variable de gestion des propri<72>t<EFBFBD>s.
Elles sont de la forme: {$smarty.section.nomSection.nomVariable}
@@ -266,7 +267,7 @@ e-mail: jane@mydomain.com&lt;p&gt;</programlisting>
</note>
<example>
<title>propri<EFBFBD>t<EFBFBD> de section index</title>
<programlisting>
<programlisting>
{section name=client loop=$idClient}
{$smarty.section.client.index} id: {$idClient[client]}&lt;br&gt;
{/section}
@@ -288,7 +289,7 @@ e-mail: jane@mydomain.com&lt;p&gt;</programlisting>
</para>
<example>
<title>propri<EFBFBD>t<EFBFBD> de section index_prev</title>
<programlisting>
<programlisting>
{section name=client loop=$custid}
{$smarty.section.client.index} id: {$idClient[client]}&lt;br&gt;
{* Pour votre information, $idClient[client.index] and $idClient[client] sont identiques *}
@@ -318,7 +319,7 @@ e-mail: jane@mydomain.com&lt;p&gt;</programlisting>
</para>
<example>
<title>propri<EFBFBD>t<EFBFBD> de section index_next</title>
<programlisting>
<programlisting>
{section name=client loop=$idClient}
{$smarty.section.client.index} id: {$idClient[client]}&lt;br&gt;
{* Pour votre information, $idClient[client.index] and $idClient[client] sont identiques *}
@@ -352,7 +353,7 @@ e-mail: jane@mydomain.com&lt;p&gt;</programlisting>
</para>
<example>
<title>propri<EFBFBD>t<EFBFBD> iteration de section</title>
<programlisting>
<programlisting>
{section name=client loop=$idClient start=5 step=2}
Iteration courante: {$smarty.section.client.iteration}&lt;br&gt;
{$smarty.section.client.index} id: {$idClient[client]}&lt;br&gt;
@@ -384,7 +385,7 @@ e-mail: jane@mydomain.com&lt;p&gt;</programlisting>
</para>
<example>
<title>propri<EFBFBD>t<EFBFBD> first de la section</title>
<programlisting>
<programlisting>
{section name=client loop=$idClient}
{if $smarty.section.client.first}
&lt;table&gt;
@@ -416,7 +417,7 @@ e-mail: jane@mydomain.com&lt;p&gt;</programlisting>
</para>
<example>
<title>Propri<EFBFBD>t<EFBFBD> last de section</title>
<programlisting>
<programlisting>
{section name=client loop=$idClient}
{if $smarty.section.client.first}
&lt;table&gt;
@@ -450,7 +451,7 @@ e-mail: jane@mydomain.com&lt;p&gt;</programlisting>
</para>
<example>
<title>propri<EFBFBD>t<EFBFBD> rownum de section</title>
<programlisting>
<programlisting>
{section name=client loop=$idClient}
{$smarty.section.client.rownum} id: {$idClient[client]}&lt;br&gt;
{/section}
@@ -472,7 +473,7 @@ e-mail: jane@mydomain.com&lt;p&gt;</programlisting>
</para>
<example>
<title>Propri<EFBFBD>t<EFBFBD> de section index</title>
<programlisting>
<programlisting>
{section name=client loop=$idClient}
{$smarty.section.client.index} id: {$idClient[client]}&lt;br&gt;
{/section}
@@ -499,7 +500,7 @@ e-mail: jane@mydomain.com&lt;p&gt;</programlisting>
</para>
<example>
<title>section, attribut show</title>
<programlisting>
<programlisting>
{* $show_client_info a pu <20>tre pass<73> par le script PHP,
pour d<>terminer si oui ou non on souhaite afficher la section *}
{section name=client loop=$idClient show=$show_client_info}
@@ -531,7 +532,7 @@ e-mail: jane@mydomain.com&lt;p&gt;</programlisting>
</para>
<example>
<title>section, propri<72>t<EFBFBD> total</title>
<programlisting>
<programlisting>
{section name=client loop=$idClient step=2}
{$smarty.section.client.index} id: {$idClient[client]}&lt;br&gt;
{/section}

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<sect1 id="language.function.strip">
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
<sect1 id="language.function.strip">
<title>strip</title>
<para>
Il est fr<66>quent que les designers web rencontrent des probl<62>mes
@@ -24,8 +25,8 @@
strip</link> pour un rendu identique pour les variables.
</para>
</note>
<example>
<title>balises strip</title>
<example>
<title>balises strip</title>
<programlisting>
{* la suite sera affich<63>e sur une seule ligne *}
{strip}
@@ -44,7 +45,7 @@
SORTIE:
&lt;table border=0&gt;&lt;tr&gt;&lt;td&gt;&lt;A HREF="http://mon.domaine.com"&gt;&lt;font color="red"&gt;Un test&lt;/font&gt;&lt;/A&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</programlisting>
</example>
</example>
<para>
Notez que dans l'exemple ci-dessus, toutes les lignes commencent et
se terminent par des balises HTML. Sachez que si vous avez du texte