diff --git a/docs/fr/designers/language-basic-syntax/language-syntax-quotes.xml b/docs/fr/designers/language-basic-syntax/language-syntax-quotes.xml
index a35df782..568e3785 100644
--- a/docs/fr/designers/language-basic-syntax/language-syntax-quotes.xml
+++ b/docs/fr/designers/language-basic-syntax/language-syntax-quotes.xml
@@ -1,6 +1,6 @@
-
+
Variables insérées dans des chaînes de caractères
@@ -8,7 +8,9 @@
chaînes entre guillemets, du moment que leur nom est exclusivement composé
de chiffres, lettres, underscores et crochets. Si le nom de la variable
contient tout autre caractère (point, référence à un objet, etc.)
- la variable doit être entourée d'apostrophes inverses (`).
+ la variable doit être entourée d'apostrophes inverses (`). Vous ne pouvez jamais
+ insérer de modifieurs, ils doivent toujours être appliquer à l'extérieur des
+ guillemets.
Syntaxe d'insertion de variables dans des chaînes
@@ -21,6 +23,7 @@ EXEMPLE DE SYNTAXE:
{func var="test $foo[bar] test"} <-- comprends $foo[bar]
{func var="test $foo.bar test"} <-- comprends $foo (not $foo.bar)
{func var="test `$foo.bar` test"} <-- comprends $foo.bar
+{func var="test `$foo.bar` test"|escape} <-- modifieurs à l'extérieur des guillemets !
EXEMPLE PRATIQUE:
{include file="subdir/$tpl_name.tpl"} <-- remplace $tpl_name avec la valeur
diff --git a/docs/fr/designers/language-builtin-functions/language-function-include.xml b/docs/fr/designers/language-builtin-functions/language-function-include.xml
index 513a3d0d..51f0528e 100644
--- a/docs/fr/designers/language-builtin-functions/language-function-include.xml
+++ b/docs/fr/designers/language-builtin-functions/language-function-include.xml
@@ -1,6 +1,6 @@
-
+
include
@@ -80,7 +80,7 @@
{* Le corps du template vient ici *}
-{include file="footer.tpl" logo="http://mon.domaine.com/logo.gif"}
+{include file="footer.tpl" logo="http://mon.example.com/logo.gif"}
Utilisez la syntaxe
-
+
ldelim,rdelim
ldelim et rdelim sont utilisés pour afficher les délimiteurs en tant
- que tels, dans notre cas "{" ou "}". Le moteur de template tentera
- toujours d'interpréter le contenu entre les délimiteurs, c'est donc
- une façon d'afficher ces derniers sans interférer avec Smarty.
+ que tels, dans notre cas, "{" ou "}". Vous pouvez toujours utiliser {literal}{/literal} pour échapper
+ des blocks de texte.
+ Voir aussi {$smarty.ldelim}
+ et {$smarty.rdelim}.
ldelim, rdelim
-
+
+
-
-
+]]>
+
+
+ Affichera :
+
+
+
+
+
+
-
+
literal
@@ -9,28 +9,34 @@
de l'emplois d'éléments tels que javascript, acolades et autres
qui peuvent confondre le moteur de template. Tout le contenu situé
entre les balises {literal}{/literal} ne sera pas interprété, et
- affiché comme du contenu statique.
+ affiché comme du contenu statique. Si vous voulez inclure des tags de template
+ dans votre block litéral, utilisez plutôt {ldelim}{rdelim} pour échapper
+ les délimiteurs individuels.
balises literal
-
+
+
- <!--
- function isblank(field) {
- if (field.value == '')
- { return false; }
- else
- {
- document.loginform.submit();
- return true;
- }
- }
- // -->
+
- </script>
-{/literal}
+
+{/literal}
+]]>
+
-
+
- section,sectionelse
+ section, sectionelse
@@ -29,12 +29,10 @@
loop
- [$nom_variable]
+ mixed
Oui
n/a
- le nom de la variable qui détermine le nombre de
- fois que la boucle sera exécutée.
-
+ valeur qui détermine le nombre de fois que la boucle sera exécutée.
start
@@ -164,13 +162,13 @@ addresse: 5605 apple st<br>
$type_contact[client] est un tableau de type de contact pour le client
courant. *}
{section name=client loop=$idClient}
- id: {$idClient[client]}<br>
- nom: {$nom[client]}<br>
- addresse: {$addresse[client]}<br>
- {section name=contact loop=$type_contact[client]}
- {$type_contact[client][contact]}: {$info_contact[client][contact]}<br>
- {/section}
- <p>
+ id: {$idClient[client]}<br>
+ nom: {$nom[client]}<br>
+ addresse: {$addresse[client]}<br>
+ {section name=contact loop=$type_contact[client]}
+ {$type_contact[client][contact]}: {$info_contact[client][contact]}<br>
+ {/section}
+ <p>
{/section}
@@ -181,21 +179,21 @@ nom: John Smith<br>
addresse: 253 N 45th<br>
telephone: 555-555-5555<br>
telephone portable: 555-555-5555<br>
-e-mail: john@mydomain.com<br>
+e-mail: john@myexample.com<br>
<p>
id: 1001<br>
nom: Jack Jones<br>
addresse: 417 Mulberry ln<br>
telephone: 555-555-5555<br>
telephone portable: 555-555-5555<br>
-e-mail: jack@mydomain.com<br>
+e-mail: jack@myexample.com<br>
<p>
id: 1002<br>
nom: Jane Munson<br>
addresse: 5605 apple st<br>
telephone: 555-555-5555<br>
telephone portable: 555-555-5555<br>
-e-mail: jane@mydomain.com<br>
+e-mail: jane@myexample.com<br>
<p>
@@ -204,10 +202,10 @@ e-mail: jane@mydomain.com<br>
{* Exemple d'affichage d'un tableau associatif dans une section *}
{section name=client loop=$contacts}
- nom: {$contacts[client].name}<br>
- telephone: {$contacts[client].home}<br>
- portable: {$contacts[client].cell}<br>
- e-mail: {$contacts[client].email}<p>
+ nom: {$contacts[client].name}<br>
+ telephone: {$contacts[client].home}<br>
+ portable: {$contacts[client].cell}<br>
+ e-mail: {$contacts[client].email}<p>
{/section}
@@ -216,15 +214,15 @@ SORTIE:
nom: John Smith<br>
telephone: 555-555-5555<br>
portable: 555-555-5555<br>
-e-mail: john@mydomain.com<p>
+e-mail: john@myexample.com<p>
nom: Jack Jones<br>
telephone: 555-555-5555<br>
portable: 555-555-5555<br>
-e-mail: jack@mydomain.com<p>
+e-mail: jack@myexample.com<p>
nom: Jane Munson<br>
telephone: 555-555-5555<br>
portable: 555-555-5555<br>
-e-mail: jane@mydomain.com<p>
+e-mail: jane@myexample.com<p>
@@ -234,9 +232,9 @@ e-mail: jane@mydomain.com<p>
{* sectionelse est exécuté s'il n'existe aucune valeur dans idClient *}
{section name=client loop=$idClient}
- id: {$idClient[client]}<br>
+ id: {$idClient[client]}<br>
{sectionelse}
- Aucune valeur dans $idClient.
+ Aucune valeur dans $idClient.
{/section}
@@ -268,16 +266,16 @@ e-mail: jane@mydomain.com<p>
propriété de section index
- {section name=client loop=$idClient}
- {$smarty.section.client.index} id: {$idClient[client]}<br>
- {/section}
+ {section name=client loop=$idClient}
+ {$smarty.section.client.index} id: {$idClient[client]}<br>
+ {/section}
- SORTIE:
+ SORTIE:
- 0 id: 1000<br>
- 1 id: 1001<br>
- 2 id: 1002<br>
+ 0 id: 1000<br>
+ 1 id: 1001<br>
+ 2 id: 1002<br>
@@ -290,23 +288,23 @@ e-mail: jane@mydomain.com<p>
propriété de section index_prev
- {section name=client loop=$idClient}
- {$smarty.section.client.index} id: {$idClient[client]}<br>
- {* Pour votre information, $idClient[client.index] and $idClient[client] sont identiques *}
- {if $idClient[client.index_prev] ne $idClient[client.index]}
- L'id du client à été modifié<br>
- {/if}
- {/section}
+ {section name=client loop=$idClient}
+ {$smarty.section.client.index} id: {$idClient[client]}<br>
+ {* Pour votre information, $idClient[client.index] and $idClient[client] sont identiques *}
+ {if $idClient[client.index_prev] ne $idClient[client.index]}
+ L'id du client à été modifié<br>
+ {/if}
+ {/section}
- SORTIE:
+ SORTIE:
- 0 id: 1000<br>
- L'id du client à été modifié<br>
- 1 id: 1001<br>
- L'id du client à été modifié<br>
- 2 id: 1002<br>
- L'id du client à été modifié<br>
+ 0 id: 1000<br>
+ L'id du client à été modifié<br>
+ 1 id: 1001<br>
+ L'id du client à été modifié<br>
+ 2 id: 1002<br>
+ L'id du client à été modifié<br>
@@ -320,23 +318,23 @@ e-mail: jane@mydomain.com<p>
propriété de section index_next
- {section name=client loop=$idClient}
- {$smarty.section.client.index} id: {$idClient[client]}<br>
- {* Pour votre information, $idClient[client.index] and $idClient[client] sont identiques *}
- {if $idClient[client.index_next] ne $idClient[client.index]}
- L'id du client va changer<br>
- {/if}
- {/section}
+ {section name=client loop=$idClient}
+ {$smarty.section.client.index} id: {$idClient[client]}<br>
+ {* Pour votre information, $idClient[client.index] and $idClient[client] sont identiques *}
+ {if $idClient[client.index_next] ne $idClient[client.index]}
+ L'id du client va changer<br>
+ {/if}
+ {/section}
- SORTIE:
+ SORTIE:
- 0 id: 1000<br>
- L'id du client va changer<br>
- 1 id: 1001<br>
- L'id du client va changer<br>
- 2 id: 1002<br>
- L'id du client va changer<br>
+ 0 id: 1000<br>
+ L'id du client va changer<br>
+ 1 id: 1001<br>
+ L'id du client va changer<br>
+ 2 id: 1002<br>
+ L'id du client va changer<br>
@@ -354,27 +352,27 @@ e-mail: jane@mydomain.com<p>
propriété iteration de section
- {section name=client loop=$idClient start=5 step=2}
- Iteration courante: {$smarty.section.client.iteration}<br>
- {$smarty.section.client.index} id: {$idClient[client]}<br>
- {* Pour votre information, $idClient[client.index] and $idClient[client] sont identiques *}
- {if $idCLient[client.index_next] ne $idClient[client.index]}
- L'id du client va changer<br>
- {/if}
- {/section}
+ {section name=client loop=$idClient start=5 step=2}
+ Iteration courante: {$smarty.section.client.iteration}<br>
+ {$smarty.section.client.index} id: {$idClient[client]}<br>
+ {* Pour votre information, $idClient[client.index] and $idClient[client] sont identiques *}
+ {if $idCLient[client.index_next] ne $idClient[client.index]}
+ L'id du client va changer<br>
+ {/if}
+ {/section}
- SORTIE:
+ SORTIE:
- Iteration courante: 1
- 5 id: 1000<br>
- L'id du client va changer<br>
- Iteration courante: 2
- 7 id: 1001<br>
- L'id du client va changer<br>
- Iteration courante: 3
- 9 id: 1002<br>
- L'id du client va changer<br>
+ Iteration courante: 1
+ 5 id: 1000<br>
+ L'id du client va changer<br>
+ Iteration courante: 2
+ 7 id: 1001<br>
+ L'id du client va changer<br>
+ Iteration courante: 3
+ 9 id: 1002<br>
+ L'id du client va changer<br>
@@ -386,27 +384,27 @@ e-mail: jane@mydomain.com<p>
propriété first de la section
- {section name=client loop=$idClient}
- {if $smarty.section.client.first}
- <table>
- {/if}
+ {section name=client loop=$idClient}
+ {if $smarty.section.client.first}
+ <table>
+ {/if}
- <tr><td>{$smarty.section.client.index} id:
- {$idClient[client]}</td></tr>
+ <tr><td>{$smarty.section.client.index} id:
+ {$idClient[client]}</td></tr>
- {if $smarty.section.client.last}
- </table>
- {/if}
- {/section}
+ {if $smarty.section.client.last}
+ </table>
+ {/if}
+ {/section}
- SORTIE:
+ SORTIE:
- <table>
- <tr><td>0 id: 1000</td></tr>
- <tr><td>1 id: 1001</td></tr>
- <tr><td>2 id: 1002</td></tr>
- </table>
+ <table>
+ <tr><td>0 id: 1000</td></tr>
+ <tr><td>1 id: 1001</td></tr>
+ <tr><td>2 id: 1002</td></tr>
+ </table>
@@ -418,27 +416,27 @@ e-mail: jane@mydomain.com<p>
Propriété last de section
- {section name=client loop=$idClient}
- {if $smarty.section.client.first}
- <table>
- {/if}
+ {section name=client loop=$idClient}
+ {if $smarty.section.client.first}
+ <table>
+ {/if}
- <tr><td>{$smarty.section.client.index} id:
- {$idClient[client]}</td></tr>
+ <tr><td>{$smarty.section.client.index} id:
+ {$idClient[client]}</td></tr>
- {if $smarty.section.client.last}
- </table>
- {/if}
- {/section}
+ {if $smarty.section.client.last}
+ </table>
+ {/if}
+ {/section}
- SORTIE:
+ SORTIE:
- <table>
- <tr><td>0 id: 1000</td></tr>
- <tr><td>1 id: 1001</td></tr>
- <tr><td>2 id: 1002</td></tr>
- </table>
+ <table>
+ <tr><td>0 id: 1000</td></tr>
+ <tr><td>1 id: 1001</td></tr>
+ <tr><td>2 id: 1002</td></tr>
+ </table>
@@ -452,16 +450,16 @@ e-mail: jane@mydomain.com<p>
propriété rownum de section
- {section name=client loop=$idClient}
- {$smarty.section.client.rownum} id: {$idClient[client]}<br>
- {/section}
+ {section name=client loop=$idClient}
+ {$smarty.section.client.rownum} id: {$idClient[client]}<br>
+ {/section}
- SORTIE:
+ SORTIE:
- 1 id: 1000<br>
- 2 id: 1001<br>
- 3 id: 1002<br>
+ 1 id: 1000<br>
+ 2 id: 1001<br>
+ 3 id: 1002<br>
@@ -474,19 +472,19 @@ e-mail: jane@mydomain.com<p>
Propriété de section index
- {section name=client loop=$idClient}
- {$smarty.section.client.index} id: {$idClient[client]}<br>
- {/section}
+ {section name=client loop=$idClient}
+ {$smarty.section.client.index} id: {$idClient[client]}<br>
+ {/section}
- Il y eu {$smarty.section.client.loop} clients d'affichés.
+ Il y eu {$smarty.section.client.loop} clients d'affichés.
- SORTIE:
+ SORTIE:
- 0 id: 1000<br>
- 1 id: 1001<br>
- 2 id: 1002<br>
+ 0 id: 1000<br>
+ 1 id: 1001<br>
+ 2 id: 1002<br>
- il y eu 3 clients d'affichés.
+ il y eu 3 clients d'affichés.
@@ -501,26 +499,26 @@ e-mail: jane@mydomain.com<p>
section, attribut show
- {* $show_client_info a pu être passé 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}
- {$smarty.section.client.rownum} id: {$idClient[client]}<br>
- {/section}
+ {* $show_client_info a pu être passé 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}
+ {$smarty.section.client.rownum} id: {$idClient[client]}<br>
+ {/section}
- {if $smarty.section.client.show}
- la section à été affichée.
- {else}
- la section n'a pas été affichée.
- {/if}
+ {if $smarty.section.client.show}
+ la section à été affichée.
+ {else}
+ la section n'a pas été affichée.
+ {/if}
- SORTIE:
+ SORTIE:
- 1 id: 1000<br>
- 2 id: 1001<br>
- 3 id: 1002<br>
+ 1 id: 1000<br>
+ 2 id: 1001<br>
+ 3 id: 1002<br>
- la section à été affichée.
+ la section à été affichée.
@@ -533,19 +531,19 @@ e-mail: jane@mydomain.com<p>
section, propriété total
- {section name=client loop=$idClient step=2}
- {$smarty.section.client.index} id: {$idClient[client]}<br>
- {/section}
+ {section name=client loop=$idClient step=2}
+ {$smarty.section.client.index} id: {$idClient[client]}<br>
+ {/section}
- Il y eu {$smarty.section.client.total} clients affichés.
+ Il y eu {$smarty.section.client.total} clients affichés.
- SORTIE:
+ SORTIE:
- 0 id: 1000<br>
- 2 id: 1001<br>
- 4 id: 1002<br>
+ 0 id: 1000<br>
+ 2 id: 1001<br>
+ 4 id: 1002<br>
- Il y eu 3 clients affichés.
+ Il y eu 3 clients affichés.
diff --git a/docs/fr/designers/language-builtin-functions/language-function-strip.xml b/docs/fr/designers/language-builtin-functions/language-function-strip.xml
index 22ff725c..4bd25721 100644
--- a/docs/fr/designers/language-builtin-functions/language-function-strip.xml
+++ b/docs/fr/designers/language-builtin-functions/language-function-strip.xml
@@ -1,6 +1,6 @@
-
+
strip
@@ -32,20 +32,20 @@
{strip}
-
-
-
- Un test
-
- |
-
+
+
+
+ Un test
+
+ |
+
{/strip}
SORTIE:
-
+
]]>