cvs: smarty /docs/fr/designers language-basic-syntax.xml /docs/fr/designers/language-modifiers language-modifier-date-format.xml language-modifier-default.xml language-modifier-escape.xml language-modifier-indent.xml language-modifier-lower.xml language-modifier-nl2br.xml language-modifier-regex-replace.xml language-modifier-replace.xml language-modifier-spacify.xml language-modifier-string-format.xml language-modifier-strip-tags.xml language-modifier-strip.xml language-modifier-truncate.xml language-modifier-upper.xml language-modifier-wordwrap.xml
"gerald croes" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsgerald1088933979@cvsserver> |
gerald Sun Jul 4 05:39:39 2004 EDT
Modified files:
/smarty/docs/fr/designers language-basic-syntax.xml
/smarty/docs/fr/designers/language-modifiers
language-modifier-date-format.xml
language-modifier-default.xml
language-modifier-escape.xml
language-modifier-indent.xml
language-modifier-lower.xml
language-modifier-nl2br.xml
language-modifier-regex-replace.xml
language-modifier-replace.xml
language-modifier-spacify.xml
language-modifier-string-format.xml
language-modifier-strip-tags.xml
language-modifier-strip.xml
language-modifier-truncate.xml
language-modifier-upper.xml
language-modifier-wordwrap.xml
Log:
added <![CDATA[ tags, sync translation informations, added missing para and infotables
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
gerald-20040704053939.txt
(text/plain, 36.5 KB)
http://cvs.php.net/diff.php/smarty/docs/fr/designers/language-basic-syntax.xml?r1=1.5&r2=1.6&ty=u
Index: smarty/docs/fr/designers/language-basic-syntax.xml
diff -u smarty/docs/fr/designers/language-basic-syntax.xml:1.5 smarty/docs/fr/designers/language-basic-syntax.xml:1.6
--- smarty/docs/fr/designers/language-basic-syntax.xml:1.5 Sun May 23 11:50:21 2004
+++ smarty/docs/fr/designers/language-basic-syntax.xml Sun Jul 4 05:39:38 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
-<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
+<!-- $Revision: 1.6 $ -->
+<!-- EN-Revision: 1.4 Maintainer: gerald Status: ready -->
<chapter id="language.basic.syntax">
<title>Bases syntaxiques</title>
<para>
http://cvs.php.net/diff.php/smarty/docs/fr/designers/language-modifiers/language-modifier-date-format.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/designers/language-modifiers/language-modifier-date-format.xml
diff -u smarty/docs/fr/designers/language-modifiers/language-modifier-date-format.xml:1.2 smarty/docs/fr/designers/language-modifiers/language-modifier-date-format.xml:1.3
--- smarty/docs/fr/designers/language-modifiers/language-modifier-date-format.xml:1.2 Sun May 23 11:50:22 2004
+++ smarty/docs/fr/designers/language-modifiers/language-modifier-date-format.xml Sun Jul 4 05:39:39 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
-<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
+<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.date.format">
<title>date_format</title>
<informaltable frame="all">
@@ -48,123 +48,176 @@
</para>
<example>
<title>date_format</title>
-<programlisting>
-index.php:
+<programlisting role="php">
+<![CDATA[
+<?php
$smarty = new Smarty;
-$smarty->assign('hier', strtotime('-1 day'));
-$smarty->display('index.tpl');
-
-index.tpl:
-
-
+$smarty->assign('hier', strtotime('-1 day'));
+$smarty->display('index.tpl');
+?>
+]]>
+</programlisting>
+<para>
+ ou index.tpl est:
+</para>
+<programlisting>
+<![CDATA[
{$smarty.now|date_format}
{$smarty.now|date_format:"%A, %B %e, %Y"}
{$smarty.now|date_format:"%H:%M:%S"}
{$hier|date_format}
{$hier|date_format:"%A, %B %e, %Y"}
{$hier|date_format:"%H:%M:%S"}
-
-SORTIE:
-
+]]>
+</programlisting>
+<para>
+ Ce qui donne à l'écran:
+</para>
+<screen>
+<![CDATA[
Feb 6, 2001
Tuesday, February 6, 2001
14:33:00
Feb 5, 2001
Monday, February 5, 2001
-14:33:00</programlisting>
+14:33:00
+]]>
+</screen>
</example>
- <example>
- <title>date_format indicateurs de convertion</title>
-<programlisting>
+ <para>
+ date_format conversion specifiers:
+ <itemizedlist>
+<listitem><para>
%a - Abréviation du jour de la semaine, selon les paramètres locaux.
-
+</para></listitem>
+<listitem><para>
%A - Nom du jour de la semaine, selon les paramètres locaux.
-
+</para></listitem>
+<listitem><para>
%b - Abréviation du nom du jour, selon les paramètres locaux.
-
+</para></listitem>
+<listitem><para>
%B - Nom complet du mois, selon les paramètres locaux.
-
+</para></listitem>
+<listitem><para>
%c - Préférences d'affichage selon les paramètres locaux.
-
+</para></listitem>
+<listitem><para>
%C - Siècle, (L'année divisée par 100 et tronquée comme un entier, de 00 à 99)
-
+</para></listitem>
+<listitem><para>
%d - Jour du mois, en tant que nombre décimal (de 00 à 31)
-
+</para></listitem>
+<listitem><para>
%D - même chose que %m/%d/%y
-
+</para></listitem>
+<listitem><para>
%e - Jour du mois en tant que nombre décimal. Un chiffre unique est précédé par
un espace (de 1 à 31)
-
+</para></listitem>
+<listitem><para>
%g - Position de la semaine dans le siècle [00,99]
-
+</para></listitem>
+<listitem><para>
%G - Position de la semaine, incluant le siècle [0000,9999]
-
+</para></listitem>
+<listitem><para>
%h - identique à %b
-
+</para></listitem>
+<listitem><para>
%H - L'heure en tant que décimale, en utilisant une horloge sur 24 (de 00 à 23)
-
+</para></listitem>
+<listitem><para>
%I - L'heure en tant que décimale en utilisant une horloge sur 12 (de 01 to 12)
-
+</para></listitem>
+<listitem><para>
%j - jour de l'année (de 001 à 366)
-
+</para></listitem>
+<listitem><para>
%k - Heure (horloge sur 24). Les numéros à un chiffre sont précédés d'un espace. (de 0 à 23)
-
+</para></listitem>
+<listitem><para>
%l - Heure (horloge sur 12). Les numéros à un chiffre sont précédés d'un espace. (de 1 à 12)
-
+</para></listitem>
+<listitem><para>
%m - Mois en tant que nombre décimal (de 01 à 12)
-
+</para></listitem>
+<listitem><para>
%M - Minute en tant que nombre décimal
-
+</para></listitem>
+<listitem><para>
%n - Retour chariot (nouvelle ligne).
-
+</para></listitem>
+<listitem><para>
%p - soit am soit pm selon l'heure donnée, ou alors leurs correspondances locales.
-
+</para></listitem>
+<listitem><para>
%r - heure en notation a.m. et p.m.
-
+</para></listitem>
+<listitem><para>
%R - Heure au format 24 heures
-
+</para></listitem>
+<listitem><para>
%S - Secondes en tant que nombre décimal.
-
+</para></listitem>
+<listitem><para>
%t - Caractère tabulation.
-
+</para></listitem>
+<listitem><para>
%T - Heure courante, équivalent à %H:%M:%S
-
+</para></listitem>
+<listitem><para>
%u - Jour de la semaine en tant que nombre décimal [1,7], ou 1 représente le lundi.
-
+</para></listitem>
+<listitem><para>
%U - Le numéro de la semaine en nombre décimal, utilisant le premier dimanche
en tant que premier jour de la première semaine.
-
+</para></listitem>
+<listitem><para>
%V - Le numéro de la semaine de l'année courante selon la norme ISO 8601:1988,
de 01 à 53, ou la semaine 1 est la première semaine qui dispose au minimum
de 4 jours dans l'année courante et ou Lundi est le premier jour
de cette semaine.
-
+</para></listitem>
+<listitem><para>
%w - Jour de la semaine en tant que nombre décimal, dimanche étant 0
-
+</para></listitem>
+<listitem><para>
%W - Le numéro de la semaine de l'année courante en tant que nombre décimal,
ou Lundi est le premier jour de la première semaine.
-
+</para></listitem>
+<listitem><para>
%x - Représentation préférée de la date selon les paramètres locaux.
-
+</para></listitem>
+<listitem><para>
%X - Représentation préférée de l'heure selon les paramètres locaux, sans la
date.
-
+</para></listitem>
+<listitem><para>
%y - L'année en tant que nombre décimal, sans le siècle. (de 00 à 99)
-
+</para></listitem>
+<listitem><para>
%Y - L'année en tant que nombre décimal, avec le siècle.
-
+</para></listitem>
+<listitem><para>
%Z - Zone horraire, nom ou abréviation
-
+</para></listitem>
+<listitem><para>
%% - Un caractère litéral `%'
-
-NOTE AUX DEVELOPPEURS: date_format est un alias de la fonction
-PHP strftime(). Il est probable que vous disposiez de plus ou moins d'options
-disponibles selon le système sur lequel PHP a été compilé (strftime ()).
-Reportez vous à l'aide de votre système pour une liste complète des
-paramètres disponibles.</programlisting>
- </example>
-
+</para></listitem>
+</itemizedlist>
+ <note>
+ <title>Note aux développeurs</title>
+ <para>
+ NOTE AUX DEVELOPPEURS: date_format est un alias de la fonction
+ PHP strftime(). Il est probable que vous disposiez de plus ou moins d'options
+ disponibles selon le système sur lequel PHP a été compilé (strftime ()).
+ Reportez vous à l'aide de votre système pour une liste complète des
+ paramètres disponibles.
+ </para>
+ </note>
+</para>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
http://cvs.php.net/diff.php/smarty/docs/fr/designers/language-modifiers/language-modifier-default.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/designers/language-modifiers/language-modifier-default.xml
diff -u smarty/docs/fr/designers/language-modifiers/language-modifier-default.xml:1.2 smarty/docs/fr/designers/language-modifiers/language-modifier-default.xml:1.3
--- smarty/docs/fr/designers/language-modifiers/language-modifier-default.xml:1.2 Sun May 23 11:50:22 2004
+++ smarty/docs/fr/designers/language-modifiers/language-modifier-default.xml Sun Jul 4 05:39:39 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
-<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
+<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.default">
<title>default</title>
<informaltable frame="all">
@@ -38,22 +38,31 @@
</para>
<example>
<title>default</title>
-<programlisting>
-index.php:
-
+<programlisting role="php">
+<![CDATA[
+<?php
$smarty = new Smarty;
-$smarty->assign('TitreArticle', 'Les portes de la moria restent fermées.');
-$smarty->display('index.tpl');
-
-index.tpl:
-
+$smarty->assign('TitreArticle', 'Les portes de la moria restent fermées.');
+$smarty->display('index.tpl');
+?>
+]]>
+</programlisting>
+<para>
+Ou index.tpl est:
+</para>
+<programlisting>
+<![CDATA[
{$TitreArticle|default:"pas de titre"}
{$monTitre|default:"pas de titre"}
-
-SORTIE:
-
+]]>
+</programlisting>
+<para>
+Ce qui donne à l'écran :
+</para>
+<screen>
Les portes de la moria restent fermées.
-pas de titre</programlisting>
+pas de titre
+</screen>
</example>
</sect1>
<!-- Keep this comment at the end of the file
http://cvs.php.net/diff.php/smarty/docs/fr/designers/language-modifiers/language-modifier-escape.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/designers/language-modifiers/language-modifier-escape.xml
diff -u smarty/docs/fr/designers/language-modifiers/language-modifier-escape.xml:1.2 smarty/docs/fr/designers/language-modifiers/language-modifier-escape.xml:1.3
--- smarty/docs/fr/designers/language-modifiers/language-modifier-escape.xml:1.2 Sun May 23 11:50:22 2004
+++ smarty/docs/fr/designers/language-modifiers/language-modifier-escape.xml Sun Jul 4 05:39:39 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
-<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
+<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.escape">
<title>escape</title>
<informaltable frame="all">
@@ -42,32 +42,43 @@
</para>
<example>
<title>escape</title>
-<programlisting>
-index.php:
-
+<programlisting role="php">
+<![CDATA[
+<?php
$smarty = new Smarty;
-$smarty->assign('TitreArticle', "'Stiff Opposition Expected to Casketless Funeral Plan'");
-$smarty->display('index.tpl');
-
-index.tpl:
-
+$smarty->assign('TitreArticle', "'Stiff Opposition Expected to Casketless Funeral Plan'");
+$smarty->display('index.tpl');
+?>
+]]>
+</programlisting>
+<para>
+Ou index.tpl est:
+</para>
+<programlisting>
+<![CDATA[
{$titreArticle}
{$titreArticle|escape}
{$titreArticle|escape:"html"} {* escapes & " ' < > *}
{$titreArticle|escape:"htmlall"} {* escapes ALL html entities *}
{$titreArticle|escape:"url"}
{$titreArticle|escape:"quotes"}
-<a href="mailto:{$EmailAddress|escape:"hex"}">{$EmailAddress|escape:"hexentity"}</a>
-
-SORTIE:
-
+<a href="mailto:{$EmailAddress|escape:"hex"}">{$EmailAddress|escape:"hexentity"}</a>
+]]>
+</programlisting>
+<para>
+Ce qui donne à l'écran:
+</para>
+<screen>
+<![CDATA[
'Stiff Opposition Expected to Casketless Funeral Plan'
&#039;Stiff Opposition Expected to Casketless Funeral Plan&#039;
&#039;Stiff Opposition Expected to Casketless Funeral Plan&#039;
&#039;Stiff Opposition Expected to Casketless Funeral Plan&#039;
%27Stiff+Opposition+Expected+to+Casketless+Funeral+Plan%27
\'Stiff Opposition Expected to Casketless Funeral Plan\'
-<a href="mailto:%62%6f%62%40%6d%65%2e%6e%65%74">&#x62;&#x6f;&#x62;&#x40;&#x6d;&#x65;&#x2e;&#x6e;&#x65;&#x74;</a></programlisting>
+<a href="mailto:%62%6f%62%40%6d%65%2e%6e%65%74">bob@me.net</a>
+]]>
+</screen>
</example>
</sect1>
<!-- Keep this comment at the end of the file
http://cvs.php.net/diff.php/smarty/docs/fr/designers/language-modifiers/language-modifier-indent.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/designers/language-modifiers/language-modifier-indent.xml
diff -u smarty/docs/fr/designers/language-modifiers/language-modifier-indent.xml:1.2 smarty/docs/fr/designers/language-modifiers/language-modifier-indent.xml:1.3
--- smarty/docs/fr/designers/language-modifiers/language-modifier-indent.xml:1.2 Sun May 23 11:50:22 2004
+++ smarty/docs/fr/designers/language-modifiers/language-modifier-indent.xml Sun Jul 4 05:39:39 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
-<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
+<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.indent">
<title>indent</title>
<informaltable frame="all">
@@ -46,15 +46,20 @@
</para>
<example>
<title>indent</title>
-<programlisting>
-index.php:
-
+<programlisting role="php">
+<![CDATA[
+<?php
$smarty = new Smarty;
-$smarty->assign('TitreArticle', 'Il fera noir cette nuit.');
-$smarty->display('index.tpl');
-
-index.tpl:
-
+$smarty->assign('TitreArticle', 'Il fera noir cette nuit.');
+$smarty->display('index.tpl');
+?>
+]]>
+</programlisting>
+<para>
+Ou index.tpl est:
+</para>
+<programlisting>
+<![CDATA[
{$TitreArticle}
{$TitreArticle|indent}
@@ -62,9 +67,13 @@
{$TitreArticle|indent:10}
{$TitreArticle|indent:1:"\t"}
-
-SORTIE:
-
+]]>
+</programlisting>
+<para>
+Ce qui donne à l'écran
+</para>
+<screen>
+<![CDATA[
Il fera noir cette nuit.
Il fera noir cette nuit.
@@ -72,7 +81,8 @@
Il fera noir cette nuit.
Il fera noir cette nuit.
- </programlisting>
+]]>
+</screen>
</example>
</sect1>
<!-- Keep this comment at the end of the file
http://cvs.php.net/diff.php/smarty/docs/fr/designers/language-modifiers/language-modifier-lower.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/designers/language-modifiers/language-modifier-lower.xml
diff -u smarty/docs/fr/designers/language-modifiers/language-modifier-lower.xml:1.2 smarty/docs/fr/designers/language-modifiers/language-modifier-lower.xml:1.3
--- smarty/docs/fr/designers/language-modifiers/language-modifier-lower.xml:1.2 Sun May 23 11:50:22 2004
+++ smarty/docs/fr/designers/language-modifiers/language-modifier-lower.xml Sun Jul 4 05:39:39 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
-<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
+<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.lower">
<title>lower</title>
<para>
@@ -8,22 +8,33 @@
</para>
<example>
<title>lower</title>
-<programlisting>
-index.php:
-
+<programlisting role="php">
+<![CDATA[
+<?php
$smarty = new Smarty;
-$smarty->assign('TitreArticle', 'Deux Suspects Se Sont Sauvés.');
-$smarty->display('index.tpl');
-
-index.tpl:
-
+$smarty->assign('TitreArticle', 'Deux Suspects Se Sont Sauvés.');
+$smarty->display('index.tpl');
+?>
+]]>
+</programlisting>
+<para>
+Ou index.tpl est :
+</para>
+<programlisting>
+<![CDATA[
{$TitreArticle}
{$TitreArticle|lower}
-
-SORTIE:
-
+]]>
+</programlisting>
+<para>
+Ce qui donne à l'écran :
+</para>
+<screen>
+<![CDATA[
Deux Suspects Se Sont Sauvés.
-deux suspects se sont sauvés.</programlisting>
+deux suspects se sont sauvés.
+]]>
+</screen>
</example>
</sect1>
<!-- Keep this comment at the end of the file
http://cvs.php.net/diff.php/smarty/docs/fr/designers/language-modifiers/language-modifier-nl2br.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/designers/language-modifiers/language-modifier-nl2br.xml
diff -u smarty/docs/fr/designers/language-modifiers/language-modifier-nl2br.xml:1.2 smarty/docs/fr/designers/language-modifiers/language-modifier-nl2br.xml:1.3
--- smarty/docs/fr/designers/language-modifiers/language-modifier-nl2br.xml:1.2 Sun May 23 11:50:22 2004
+++ smarty/docs/fr/designers/language-modifiers/language-modifier-nl2br.xml Sun Jul 4 05:39:39 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
-<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
+<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.nl2br">
<title>nl2br</title>
<para>
@@ -9,20 +9,31 @@
</para>
<example>
<title>nl2br</title>
-<programlisting>
-index.php:
-
+<programlisting role="php">
+<![CDATA[
+<?php
$smarty = new Smarty;
-$smarty->assign('TitreArticle', "Pluie ou soleil attendu\naujourd'hui, nuit noire");
-$smarty->display('index.tpl');
-
-index.tpl:
-
+$smarty->assign('TitreArticle', "Pluie ou soleil attendu\naujourd'hui, nuit noire");
+$smarty->display('index.tpl');
+?>
+]]>
+</programlisting>
+<para>
+Ou index.tpl est :
+</para>
+<programlisting>
+<![CDATA[
{$TitreArticle|nl2br}
-
-SORTIE:
-
-Pluie ou soleil attendu<br />aujourd'hui, nuit noire</programlisting>
+]]>
+</programlisting>
+<para>
+Ce qui donne en sortie :
+</para>
+<screen>
+<![CDATA[
+Pluie ou soleil attendu<br />aujourd'hui, nuit noire
+]]>
+</screen>
</example>
</sect1>
<!-- Keep this comment at the end of the file
http://cvs.php.net/diff.php/smarty/docs/fr/designers/language-modifiers/language-modifier-regex-replace.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/designers/language-modifiers/language-modifier-regex-replace.xml
diff -u smarty/docs/fr/designers/language-modifiers/language-modifier-regex-replace.xml:1.2 smarty/docs/fr/designers/language-modifiers/language-modifier-regex-replace.xml:1.3
--- smarty/docs/fr/designers/language-modifiers/language-modifier-regex-replace.xml:1.2 Sun May 23 11:50:22 2004
+++ smarty/docs/fr/designers/language-modifiers/language-modifier-regex-replace.xml Sun Jul 4 05:39:39 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
-<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
+<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.regex.replace">
<title>regex_replace</title>
<informaltable frame="all">
@@ -43,25 +43,36 @@
</para>
<example>
<title>regex_replace</title>
-<programlisting>
-index.php:
-
+<programlisting role="php">
+<![CDATA[
+<?php
$smarty = new Smarty;
-$smarty->assign('TitreArticle', "L'infertilité est un maux grandissant\n, disent les experts.");
-$smarty->display('index.tpl');
-
-index.tpl:
-
+$smarty->assign('TitreArticle', "L'infertilité est un maux grandissant\n, disent les experts.");
+$smarty->display('index.tpl');
+?>
+]]>
+</programlisting>
+<para>
+Ou index.tpl est :
+</para>
+<programlisting>
+<![CDATA[
{* Remplace tous les retours chariot et les tabulation par une nouvelle ligne avec un espace *}
{$TitreArticle}
{$TitreArticle|regex_replace:"/[\r\t\n]/":" "}
-
-SORTIE:
-
+]]>
+</programlisting>
+<para>
+Ce qui donne en sortie:
+</para>
+<screen>
+<![CDATA[
L'infertilité est un maux grandissant
, disent les experts.
-L'infertilité est un maux grandissant, disent les experts.</programlisting>
+L'infertilité est un maux grandissant, disent les experts.
+]]>
+</screen>
</example>
</sect1>
<!-- Keep this comment at the end of the file
http://cvs.php.net/diff.php/smarty/docs/fr/designers/language-modifiers/language-modifier-replace.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/designers/language-modifiers/language-modifier-replace.xml
diff -u smarty/docs/fr/designers/language-modifiers/language-modifier-replace.xml:1.2 smarty/docs/fr/designers/language-modifiers/language-modifier-replace.xml:1.3
--- smarty/docs/fr/designers/language-modifiers/language-modifier-replace.xml:1.2 Sun May 23 11:50:22 2004
+++ smarty/docs/fr/designers/language-modifiers/language-modifier-replace.xml Sun Jul 4 05:39:39 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
-<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
+<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.replace">
<title>replace</title>
<informaltable frame="all">
@@ -42,24 +42,35 @@
</para>
<example>
<title>replace</title>
-<programlisting>
-index.php:
-
+<programlisting role="php">
+<![CDATA[
+<?php
$smarty = new Smarty;
-$smarty->assign('titreArticle', "Child's Stool Great for Use in Garden.");
-$smarty->display('index.tpl');
-
-index.tpl:
-
+$smarty->assign('titreArticle', "Child's Stool Great for Use in Garden.");
+$smarty->display('index.tpl');
+?>
+]]>
+</programlisting>
+<para>
+Ou index.tpl est :
+</para>
+<programlisting>
+<![CDATA[
{$titreArticle}
{$titreArticle|replace:"Garden":"Vineyard"}
{$titreArticle|replace:" ":" "}
-
-SORTIE:
-
+]]>
+</programlisting>
+<para>
+Ce qui donne en sortie :
+</para>
+<screen>
+<![CDATA[
Child's Stool Great for Use in Garden.
Child's Stool Great for Use in Vineyard.
-Child's Stool Great for Use in Garden.</programlisting>
+Child's Stool Great for Use in Garden.
+]]>
+</screen>
</example>
</sect1>
<!-- Keep this comment at the end of the file
http://cvs.php.net/diff.php/smarty/docs/fr/designers/language-modifiers/language-modifier-spacify.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/designers/language-modifiers/language-modifier-spacify.xml
diff -u smarty/docs/fr/designers/language-modifiers/language-modifier-spacify.xml:1.2 smarty/docs/fr/designers/language-modifiers/language-modifier-spacify.xml:1.3
--- smarty/docs/fr/designers/language-modifiers/language-modifier-spacify.xml:1.2 Sun May 23 11:50:22 2004
+++ smarty/docs/fr/designers/language-modifiers/language-modifier-spacify.xml Sun Jul 4 05:39:39 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
-<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
+<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.spacify">
<title>spacify</title>
<informaltable frame="all">
@@ -37,25 +37,36 @@
</para>
<example>
<title>spacify</title>
-<programlisting>
-index.php:
-
+<programlisting role="php">
+<![CDATA[
+<?php
$smarty = new Smarty;
-$smarty->assign('titreArticle', 'Quelque chose s'est mal passé et à provoqué
+$smarty->assign('titreArticle', 'Quelque chose s\'est mal passé et à provoqué
cet accident, disent les experts');
-$smarty->display('index.tpl');
-
-index.tpl:
-
+$smarty->display('index.tpl');
+?>
+]]>
+</programlisting>
+<para>
+Ou index.tpl est :
+</para>
+<programlisting>
+<![CDATA[
{$titreArticle}
{$titreArticle|spacify}
{$titreArticle|spacify:"^^"}
-
-SORTIE:
-
+]]>
+</programlisting>
+<para>
+Ce qui donne à l'écran :
+</para>
+<screen>
+<![CDATA[
Quelquechose s'est mal passé et à provoqué cet accident, disent les experts.
Q u e l q u e c h o s e s ' e s t m a l p a s s é e t à p r o v o q u é c e t a c c i d e n t , d i s e n t l e s e x p e r t s .
-Q^^u^^e^^l^^q^^u^^e^^c^^h^^o^^s^^e^^ ^^s^^'^^e^^s^^t^^ ^^m^^a^^l^^ ^^p^^a^^s^^s^^é^^ ^^e^^t^^ ^^à^^ ^^p^^r^^o^^v^^o^^q^^u^^é^^ ^^c^^e^^t^^ ^^a^^c^^c^^i^^d^^e^^n^^t^^,^^ ^^d^^i^^s^^e^^n^^t^^ ^^l^^e^^s^^ ^^e^^x^^p^^e^^r^^t^^s^^.</programlisting>
+Q^^u^^e^^l^^q^^u^^e^^c^^h^^o^^s^^e^^ ^^s^^'^^e^^s^^t^^ ^^m^^a^^l^^ ^^p^^a^^s^^s^^é^^ ^^e^^t^^ ^^à^^ ^^p^^r^^o^^v^^o^^q^^u^^é^^ ^^c^^e^^t^^ ^^a^^c^^c^^i^^d^^e^^n^^t^^,^^ ^^d^^i^^s^^e^^n^^t^^ ^^l^^e^^s^^ ^^e^^x^^p^^e^^r^^t^^s^^.
+]]>
+</screen>
</example>
</sect1>
<!-- Keep this comment at the end of the file
http://cvs.php.net/diff.php/smarty/docs/fr/designers/language-modifiers/language-modifier-string-format.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/designers/language-modifiers/language-modifier-string-format.xml
diff -u smarty/docs/fr/designers/language-modifiers/language-modifier-string-format.xml:1.2 smarty/docs/fr/designers/language-modifiers/language-modifier-string-format.xml:1.3
--- smarty/docs/fr/designers/language-modifiers/language-modifier-string-format.xml:1.2 Sun May 23 11:50:22 2004
+++ smarty/docs/fr/designers/language-modifiers/language-modifier-string-format.xml Sun Jul 4 05:39:39 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
-<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
+<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.string.format">
<title>string_format</title>
<informaltable frame="all">
@@ -36,24 +36,35 @@
</para>
<example>
<title>string_format</title>
-<programlisting>
-index.php:
-
+<programlisting role="php">
+<![CDATA[
+<?php
$smarty = new Smarty;
-$smarty->assign('nombre', 23.5787446);
-$smarty->display('index.tpl');
-
-index.tpl:
-
+$smarty->assign('nombre', 23.5787446);
+$smarty->display('index.tpl');
+?>
+]]>
+</programlisting>
+<para>
+ou index.tpl est :
+</para>
+<programlisting>
+<![CDATA[
{$nombre}
{$nombre|string_format:"%.2f"}
{$nombre|string_format:"%d"}
-
-SORTIE:
-
+]]>
+</programlisting>
+<para>
+Ce qui donne en sortie :
+</para>
+<screen>
+<![CDATA[
23.5787446
23.58
-24</programlisting>
+24
+]]>
+</screen>
</example>
</sect1>
<!-- Keep this comment at the end of the file
http://cvs.php.net/diff.php/smarty/docs/fr/designers/language-modifiers/language-modifier-strip-tags.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/designers/language-modifiers/language-modifier-strip-tags.xml
diff -u smarty/docs/fr/designers/language-modifiers/language-modifier-strip-tags.xml:1.2 smarty/docs/fr/designers/language-modifiers/language-modifier-strip-tags.xml:1.3
--- smarty/docs/fr/designers/language-modifiers/language-modifier-strip-tags.xml:1.2 Sun May 23 11:50:22 2004
+++ smarty/docs/fr/designers/language-modifiers/language-modifier-strip-tags.xml Sun Jul 4 05:39:39 2004
@@ -1,33 +1,70 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
-<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
+<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.strip.tags">
<title>strip_tags</title>
+ <informaltable frame="all">
+ <tgroup cols="5">
+ <colspec colname="param" align="center" />
+ <colspec colname="type" align="center" />
+ <colspec colname="required" align="center" />
+ <colspec colname="default" align="center" />
+ <colspec colname="desc"/>
+ <thead>
+ <row>
+ <entry>Position du paramètre</entry>
+ <entry>Type</entry>
+ <entry>Requis</entry>
+ <entry>Defaut</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>1</entry>
+ <entry>bool</entry>
+ <entry>Non</entry>
+ <entry>true</entry>
+ <entry>Si l'on remplace les éléments par ' ' ou par ''</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
<para>
Supprime toutes les balises, et plus généralement tout ce qui se trouve
entre < et >.
</para>
<example>
<title>strip_tags</title>
-<programlisting>
-index.php:
-
+<programlisting role="php">
+<![CDATA[
+<?php
$smarty = new Smarty;
-$smarty->assign('titreArticle', "Une femme aveugle obtient un nouveau <font face=\"helvetica\">
-rein</font> d'un père qu'elle n'a pas vu depuis<b> des années</b>.");
-$smarty->display('index.tpl');
-
-index.tpl:
-
+$smarty->assign('titreArticle', "Une femme aveugle obtient un nouveau <font face=\"helvetica\">rein</font> d'un père qu'elle n'a pas vu depuis <b>des années</b>.");
+$smarty->display('index.tpl');
+?>
+]]>
+</programlisting>
+<para>
+Ou index.tpl est :
+</para>
+<programlisting>
+<![CDATA[
{$titreArticle}
-{$titreArticle|strip_tags}
-
-SORTIE:
-
-Une femme aveugle obtient un nouveau <font face=\"helvetica\">
-rein</font> d'un père qu'elle n'a pas vu depuis<b> des années</b>.
-Une femme aveugle obtient un nouveau rein d'un père
-qu'elle n'a pas vu depuis des années.</programlisting>
+{$titreArticle|strip_tags} {* identique à {$titreArticle|strip_tags:true} *}
+{$titreArticle|strip_tags:false}
+]]>
+</programlisting>
+<para>
+Ce qui donne en sortie :
+</para>
+<screen>
+<![CDATA[
+Une femme aveugle obtient un nouveau <font face=\"helvetica\">rein</font> d'un père qu'elle n'a pas vu depuis <b>des années</b>.
+Une femme aveugle obtient un nouveau rein d'un père qu'elle n'a pas vu depuis des années .
+Une femme aveugle obtient un nouveau rein d'un père qu'elle n'a pas vu depuis des années.
+]]>
+</screen>
</example>
</sect1>
<!-- Keep this comment at the end of the file
http://cvs.php.net/diff.php/smarty/docs/fr/designers/language-modifiers/language-modifier-strip.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/designers/language-modifiers/language-modifier-strip.xml
diff -u smarty/docs/fr/designers/language-modifiers/language-modifier-strip.xml:1.2 smarty/docs/fr/designers/language-modifiers/language-modifier-strip.xml:1.3
--- smarty/docs/fr/designers/language-modifiers/language-modifier-strip.xml:1.2 Sun May 23 11:50:22 2004
+++ smarty/docs/fr/designers/language-modifiers/language-modifier-strip.xml Sun Jul 4 05:39:39 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
-<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
+<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.strip">
<title>strip</title>
<para>
@@ -17,27 +17,36 @@
</note>
<example>
<title>strip</title>
-<programlisting>
-index.php:
-
+<programlisting role="php">
+<![CDATA[
+<?php
$smarty = new Smarty;
-$smarty->assign('titreArticle', "Une réunion autour\n d'un feu de cheminée\t
+$smarty->assign('titreArticle', "Une réunion autour\n d'un feu de cheminée\t
est toujours agréable.");
-$smarty->display('index.tpl');
-
-index.tpl:
-
+$smarty->display('index.tpl');
+?>
+]]>
+</programlisting>
+<para>
+Ou index.tpl est :
+</para>
+<programlisting>
+<![CDATA[
{$titreArticle}
{$titreArticle|strip}
{$titreArticle|strip:"&nbsp;"}
-
-SORTIE:
-
+]]>
+</programlisting>
+<para>
+Ce qui donne en sortie :
+</para>
+<screen>
Une réunion autour
d'un feu de cheminée est toujours agréable.
Une réunion autour d'un feu de cheminée est toujours agréable.
Une&nbsp;réunion&nbsp;autour&nbsp;d'un&nbsp;feu&nbsp;de&nbsp;cheminée&nbsp;est&nbsp;toujours
-&nbsp;agréable.</programlisting>
+&nbsp;agréable.
+</screen>
</example>
</sect1>
<!-- Keep this comment at the end of the file
http://cvs.php.net/diff.php/smarty/docs/fr/designers/language-modifiers/language-modifier-truncate.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/designers/language-modifiers/language-modifier-truncate.xml
diff -u smarty/docs/fr/designers/language-modifiers/language-modifier-truncate.xml:1.2 smarty/docs/fr/designers/language-modifiers/language-modifier-truncate.xml:1.3
--- smarty/docs/fr/designers/language-modifiers/language-modifier-truncate.xml:1.2 Sun May 23 11:50:22 2004
+++ smarty/docs/fr/designers/language-modifiers/language-modifier-truncate.xml Sun Jul 4 05:39:39 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
-<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
+<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.truncate">
<title>truncate</title>
<informaltable frame="all">
@@ -59,15 +59,20 @@
</para>
<example>
<title>truncate</title>
-<programlisting>
-index.php:
-
+<programlisting role="php">
+<![CDATA[
+<?php
$smarty = new Smarty;
-$smarty->assign('titreArticle', 'Deux soeurs réunies après 18 ans de séparation.');
-$smarty->display('index.tpl');
-
-index.tpl:
-
+$smarty->assign('titreArticle', 'Deux soeurs réunies après 18 ans de séparation.');
+$smarty->display('index.tpl');
+?>
+]]>
+</programlisting>
+<para>
+Ou index.tpl est :
+</para>
+<programlisting>
+<![CDATA[
{$titreArticle}
{$titreArticle|truncate}
{$titreArticle|truncate:30}
@@ -75,16 +80,21 @@
{$titreArticle|truncate:30:"---"}
{$titreArticle|truncate:30:"":true}
{$titreArticle|truncate:30:"...":true}
-
-SORTIE:
-
+]]>
+</programlisting>
+<para>
+Ce qui donne en sortie :
+</para>
+<screen>
+<![CDATA[
Deux soeurs réunies après 18 ans de séparation.
Deux soeurs réunies après...
Deux soeurs réunies après
Deux soeurs réunies après---
Deux soeurs réunies après 18 a
Deux soeurs réunies après 1...
-</programlisting>
+]]>
+</screen>
</example>
</sect1>
<!-- Keep this comment at the end of the file
http://cvs.php.net/diff.php/smarty/docs/fr/designers/language-modifiers/language-modifier-upper.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/designers/language-modifiers/language-modifier-upper.xml
diff -u smarty/docs/fr/designers/language-modifiers/language-modifier-upper.xml:1.2 smarty/docs/fr/designers/language-modifiers/language-modifier-upper.xml:1.3
--- smarty/docs/fr/designers/language-modifiers/language-modifier-upper.xml:1.2 Sun May 23 11:50:22 2004
+++ smarty/docs/fr/designers/language-modifiers/language-modifier-upper.xml Sun Jul 4 05:39:39 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
-<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
+<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.upper">
<title>upper</title>
<para>
@@ -8,23 +8,32 @@
</para>
<example>
<title>upper</title>
-<programlisting>
-index.php:
-
+<programlisting role="php">
+<![CDATA[
+<?php
$smarty = new Smarty;
-$smarty->assign('titreArticle', "Si l'attaque n'est pas mise en place
+$smarty->assign('titreArticle', "Si l'attaque n'est pas mise en place
rapidement, cela risque de durer longtemps.");
-$smarty->display('index.tpl');
-
-index.tpl:
-
+$smarty->display('index.tpl');
+?>
+]]>
+</programlisting>
+<para>
+Ou index.tpl est:
+</para>
+<programlisting>
+<![CDATA[
{$titreArticle}
{$titreArticle|upper}
-
-SORTIE:
-
+]]>
+</programlisting>
+<para>
+Ce qui donne en sortie :
+</para>
+<screen>
Si l'attaque n'est pas mise en place rapidement, cela risque de durer longtemps.
-SI L'ATTAQUE N'EST PAS MISE EN PLACE RAPIDEMENT, CELA RISQUE DE DURER LONGTEMPS.</programlisting>
+SI L'ATTAQUE N'EST PAS MISE EN PLACE RAPIDEMENT, CELA RISQUE DE DURER LONGTEMPS.
+</screen>
</example>
</sect1>
<!-- Keep this comment at the end of the file
http://cvs.php.net/diff.php/smarty/docs/fr/designers/language-modifiers/language-modifier-wordwrap.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/designers/language-modifiers/language-modifier-wordwrap.xml
diff -u smarty/docs/fr/designers/language-modifiers/language-modifier-wordwrap.xml:1.2 smarty/docs/fr/designers/language-modifiers/language-modifier-wordwrap.xml:1.3
--- smarty/docs/fr/designers/language-modifiers/language-modifier-wordwrap.xml:1.2 Sun May 23 11:50:22 2004
+++ smarty/docs/fr/designers/language-modifiers/language-modifier-wordwrap.xml Sun Jul 4 05:39:39 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
-<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
+<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.wordwrap">
<title>wordwrap</title>
<informaltable frame="all">
@@ -55,28 +55,37 @@
</para>
<example>
<title>wordwrap</title>
-<programlisting>
-index.php:
-
+<programlisting role="php">
+<![CDATA[
+<?php
$smarty = new Smarty;
-$smarty->assign('titreArticle', "Une femme aveugle obtient un nouveau rein
+$smarty->assign('titreArticle', "Une femme aveugle obtient un nouveau rein
d'un père qu'elle n'a pas vu depuis des années.");
-$smarty->display('index.tpl');
-
-index.tpl:
-
+$smarty->display('index.tpl');
+?>
+]]>
+</programlisting>
+<para>
+ou index.tpl est :
+</para>
+<programlisting>
+<![CDATA[
{$titreArticle}
{$titreArticle|wordwrap:30}
{$titreArticle|wordwrap:20}
-{$titreArticle|wordwrap:30:"<br>\n"}
+{$titreArticle|wordwrap:30:"<br>\n"}
{$titreArticle|wordwrap:30:"\n":true}
-
-SORTIE:
-
+]]>
+</programlisting>
+<para>
+Ce qui donne en sortie :
+</para>
+<screen>
+<![CDATA[
Une femme aveugle obtient un nouveau rein d'un père qu'elle n'a pas vu depuis des années.
Une femme aveugle obtient un
@@ -90,15 +99,16 @@
qu'elle n'a pas vu
depuis des années.
-Une femme aveugle obtient un<br>
-nouveau rein d'un père<br>
-qu'elle n'a pas vu depuis<br>
+Une femme aveugle obtient un<br>;
+nouveau rein d'un père<br>;
+qu'elle n'a pas vu depuis<br>;
des années.
Une femme aveugle obtient un n
ouveau rein d'un père qu'elle
n'a pas vu depuis des années.
-</programlisting>
+]]>
+</screen>
</example>
</sect1>
<!-- Keep this comment at the end of the file