sync with EN

This commit is contained in:
yannick
2005-05-24 22:13:50 +00:00
parent dc9aadffb8
commit 2056eaac0e
19 changed files with 297 additions and 210 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready --> <!-- EN-Revision: 1.4 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.count.characters"> <sect1 id="language.modifier.count.characters">
<title>count_characters</title> <title>count_characters</title>
<informaltable frame="all"> <informaltable frame="all">
@@ -71,9 +71,10 @@ Vagues de froid li
Voir aussi Voir aussi
<link linkend="language.modifier.count.paragraphs">count_paragraphs</link>, <link linkend="language.modifier.count.paragraphs">count_paragraphs</link>,
<link linkend="language.modifier.count.sentences">count_sentences</link> et <link linkend="language.modifier.count.sentences">count_sentences</link> et
<link linkend="language.modifier.count.words">count_words</link> <link linkend="language.modifier.count.words">count_words</link>.
</para> </para>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables:
mode: sgml mode: sgml

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready --> <!-- EN-Revision: 1.4 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.count.paragraphs"> <sect1 id="language.modifier.count.paragraphs">
<title>count_paragraphs</title> <title>count_paragraphs</title>
<para> <para>

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready --> <!-- EN-Revision: 1.4 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.count.sentences"> <sect1 id="language.modifier.count.sentences">
<title>count_sentences</title> <title>count_sentences</title>
<para> <para>
@@ -47,6 +47,7 @@ Deux navires rentrent en collision
<link linkend="language.modifier.count.words">count_words</link>. <link linkend="language.modifier.count.words">count_words</link>.
</para> </para>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables:
mode: sgml mode: sgml

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready --> <!-- EN-Revision: 1.4 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.count.words"> <sect1 id="language.modifier.count.words">
<title>count_words</title> <title>count_words</title>
<para> <para>
@@ -45,6 +45,7 @@ Un anneau pour les gouverner tous.
<link linkend="language.modifier.count.sentences">count_sentences</link>. <link linkend="language.modifier.count.sentences">count_sentences</link>.
</para> </para>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables:
mode: sgml mode: sgml

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready --> <!-- EN-Revision: 1.5 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.date.format"> <sect1 id="language.modifier.date.format">
<title>date_format</title> <title>date_format</title>
<informaltable frame="all"> <informaltable frame="all">
@@ -38,11 +38,13 @@
</tgroup> </tgroup>
</informaltable> </informaltable>
<para> <para>
Formate une date / heure au format strftime donn<6E>. Les dates peuvent Formate une date / heure au format
<EFBFBD>tre pass<73>es <20> smarty en tant que timestamp unix, timestamp mysql ou <ulink url="&url.php-manual;strftime">strftime()</ulink> donn<6E>.
comme cha<68>ne quelconque contenant mois jour ann<6E>e (interpr<70>table par Les dates peuvent <20>tre pass<73>es <20> smarty en tant que timestamp unix,
strtotime). Les concepteurs de templates peuvent utiliser date_format timestamp mysql ou comme cha<68>ne quelconque contenant mois jour ann<6E>e
pour contr<74>ler parfaitement le format de sortie de la date. (interpr<70>table par <ulink url="&url.php-manual;strtotime">strtotime()</ulink>).
Les concepteurs de templates peuvent utiliser date_format pour contr<74>ler
parfaitement le format de sortie de la date.
Si la date pass<73>e <20> date_format est vide, et qu'un second param<61>tre Si la date pass<73>e <20> date_format est vide, et qu'un second param<61>tre
est donn<6E>, ce dernier sera utilis<69> comme <20>tant la date <20> formater. est donn<6E>, ce dernier sera utilis<69> comme <20>tant la date <20> formater.
</para> </para>
@@ -219,7 +221,14 @@ en tant que premier jour de la premi
</para> </para>
</note> </note>
</para> </para>
<para>
Voir aussi
<link linkend="language.variables.smarty.now">$smarty.now</link>,
<link linkend="language.function.html.select.date">{html_select_date}</link> et
les <link linkend="tips.dates">astuces sur les dates</link>.
</para>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables:
mode: sgml mode: sgml

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready --> <!-- EN-Revision: 1.3 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.default"> <sect1 id="language.modifier.default">
<title>default</title> <title>default</title>
<informaltable frame="all"> <informaltable frame="all">
@@ -48,7 +48,7 @@ $smarty->display('index.tpl');
]]> ]]>
</programlisting> </programlisting>
<para> <para>
Ou index.tpl est: O<EFBFBD> index.tpl est :
</para> </para>
<programlisting> <programlisting>
<![CDATA[ <![CDATA[
@@ -64,6 +64,11 @@ Les portes de la moria restent ferm
pas de titre pas de titre
</screen> </screen>
</example> </example>
<para>
Voir aussi
<link linkend="tips.default.var.handling">la gestion des variables par d<>faut</link>
et <link linkend="tips.blank.var.handling">la gestion de l'effacement des variables</link>.
</para>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables:

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready --> <!-- EN-Revision: 1.4 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.escape"> <sect1 id="language.modifier.escape">
<title>escape</title> <title>escape</title>
<informaltable frame="all"> <informaltable frame="all">
@@ -76,15 +76,17 @@ Ce qui donne
&amp;#039;Stiff Opposition Expected to Casketless Funeral Plan&amp;#039; &amp;#039;Stiff Opposition Expected to Casketless Funeral Plan&amp;#039;
%27Stiff+Opposition+Expected+to+Casketless+Funeral+Plan%27 %27Stiff+Opposition+Expected+to+Casketless+Funeral+Plan%27
\'Stiff Opposition Expected to Casketless Funeral Plan\' \'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> <a href="mailto:%62%6f%..snip..%65%74">&#x62;&#x6f;&#x62..snip..&#x65;&#x74;</a>
]]> ]]>
</screen> </screen>
</example> </example>
<para> <para>
Voir aussi la Voir aussi la
<link linkend="language.escaping">d<EFBFBD>sactivation de l'analyse de Smarty</link>. <link linkend="language.escaping">d<EFBFBD>sactivation de l'analyse de Smarty</link>
et le <link linkend="tips.obfuscating.email">mascage des adresses E-mail</link>.
</para> </para>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables:
mode: sgml mode: sgml

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready --> <!-- EN-Revision: 1.3 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.indent"> <sect1 id="language.modifier.indent">
<title>indent</title> <title>indent</title>
<informaltable frame="all"> <informaltable frame="all">
@@ -84,7 +84,13 @@ Il fera noir cette nuit.
]]> ]]>
</screen> </screen>
</example> </example>
<para>
Voir aussi
<link linkend="language.modifier.strip">strip</link>
et <link linkend="language.modifier.spacify">spacify</link>.
</para>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables:
mode: sgml mode: sgml

View File

@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready --> <!-- EN-Revision: 1.3 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.nl2br"> <sect1 id="language.modifier.nl2br">
<title>nl2br</title> <title>nl2br</title>
<para> <para>
Transforme toutes les fins de lignes en balises &lt;br /&gt;. Transforme toutes les fins de lignes en balises &lt;br /&gt;.
Equivalent <20> la fonction PHP nl2br(). Equivalent <20> la fonction PHP <ulink url="&url.php-manual;nl2br">nl2br()</ulink>.
</para> </para>
<example> <example>
<title>nl2br</title> <title>nl2br</title>
@@ -19,7 +19,7 @@ $smarty->display('index.tpl');
]]> ]]>
</programlisting> </programlisting>
<para> <para>
Ou index.tpl est : O<EFBFBD> index.tpl est :
</para> </para>
<programlisting> <programlisting>
<![CDATA[ <![CDATA[
@@ -35,7 +35,14 @@ Pluie ou soleil attendu<br />aujourd'hui, nuit noire
]]> ]]>
</screen> </screen>
</example> </example>
<para>
Voir aussi
<link linkend="language.modifier.wordwrap">word_wrap</link>,
<link linkend="language.modifier.count.paragraphs">count_paragraphs</link> et
<link linkend="language.modifier.count.sentences">count_sentences</link>.
</para>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables:
mode: sgml mode: sgml

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready --> <!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.regex.replace"> <sect1 id="language.modifier.regex.replace">
<title>regex_replace</title> <title>regex_replace</title>
<informaltable frame="all"> <informaltable frame="all">
@@ -39,7 +39,8 @@
</informaltable> </informaltable>
<para> <para>
Un rechercher / remplacer avec une expression r<>guli<6C>re. Utilise la m<>me Un rechercher / remplacer avec une expression r<>guli<6C>re. Utilise la m<>me
syntaxe que la fonction PHP preg_replace. syntaxe que la fonction PHP <ulink
url="&url.php-manual;preg_replace">preg_replace()</ulink>.
</para> </para>
<example> <example>
<title>regex_replace</title> <title>regex_replace</title>
@@ -74,7 +75,13 @@ L'infertilit
]]> ]]>
</screen> </screen>
</example> </example>
<para>
Voir aussi
<link linkend="language.modifier.replace">replace</link> et
<link linkend="language.modifier.escape">escape</link>.
</para>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables:
mode: sgml mode: sgml

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready --> <!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.replace"> <sect1 id="language.modifier.replace">
<title>replace</title> <title>replace</title>
<informaltable frame="all"> <informaltable frame="all">
@@ -38,7 +38,8 @@
</tgroup> </tgroup>
</informaltable> </informaltable>
<para> <para>
Un simple remplacement de cha<68>ne de caract<63>res. Un simple remplacement de cha<68>ne de caract<63>res. Ceci est l'<27>quivalent
dela fonction PHP <ulink url="&url.php-manual;str_replace">str_replace()</ulink>.
</para> </para>
<example> <example>
<title>replace</title> <title>replace</title>
@@ -72,6 +73,11 @@ Child's Stool Great for Use in Garden.
]]> ]]>
</screen> </screen>
</example> </example>
<para>
Voir aussi
<link linkend="language.modifier.regex.replace">regex_replace</link> et
<link linkend="language.modifier.escape">escape</link>.
</para>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables:

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready --> <!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.spacify"> <sect1 id="language.modifier.spacify">
<title>spacify</title> <title>spacify</title>
<informaltable frame="all"> <informaltable frame="all">
@@ -63,12 +63,18 @@ Ce qui donne
<screen> <screen>
<![CDATA[ <![CDATA[
Quelquechose s'est mal pass<73> et <20> provoqu<71> cet accident, disent les experts. Quelquechose s'est mal pass<73> et <20> provoqu<71> 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 <20> e t <20> p r o v o q u <20> 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 .... snip .... 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^^<5E>^^ ^^e^^t^^ ^^<5E>^^ ^^p^^r^^o^^v^^o^^q^^u^^<5E>^^ ^^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.... snip .... ^r^^t^^s^^.
]]> ]]>
</screen> </screen>
</example> </example>
<para>
Voir aussi
<link linkend="language.modifier.wordwrap">wordwrap</link> et
<link linkend="language.modifier.nl2br">nl2br</link>.
</para>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables:
mode: sgml mode: sgml

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready --> <!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.string.format"> <sect1 id="language.modifier.string.format">
<title>string_format</title> <title>string_format</title>
<informaltable frame="all"> <informaltable frame="all">
@@ -32,7 +32,8 @@
</informaltable> </informaltable>
<para> <para>
Un moyen pour formater les cha<68>nes de caract<63>res, comme par exemple les Un moyen pour formater les cha<68>nes de caract<63>res, comme par exemple les
nombres d<>cimaux. Utilise la syntaxe de sprintf pour formater les <20>l<EFBFBD>ments. nombres d<>cimaux. Utilise la syntaxe de <ulink url="&url.php-manual;sprintf">sprintf</ulink>
pour formater les <20>l<EFBFBD>ments.
</para> </para>
<example> <example>
<title>string_format</title> <title>string_format</title>
@@ -66,7 +67,12 @@ Ce qui donne en sortie :
]]> ]]>
</screen> </screen>
</example> </example>
<para>
Voir aussi
<link linkend="language.modifier.date.format">date_format</link>.
</para>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables:
mode: sgml mode: sgml

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready --> <!-- EN-Revision: 1.3 Maintainer: gerald Status: ready -->
<sect1 id="language.modifier.wordwrap"> <sect1 id="language.modifier.wordwrap">
<title>wordwrap</title> <title>wordwrap</title>
<informaltable frame="all"> <informaltable frame="all">
@@ -51,7 +51,9 @@
pour l'ajustement <20> la nouvelle ligne (retour chariot \n par d<>faut). pour l'ajustement <20> la nouvelle ligne (retour chariot \n par d<>faut).
Par d<>faut, wordwrap tente un ajustement <20> la fin d'un mot. Si vous voulez Par d<>faut, wordwrap tente un ajustement <20> la fin d'un mot. Si vous voulez
autoriser le d<>coupage des mots pour un ajustement au caract<63>re pr<70>s, autoriser le d<>coupage des mots pour un ajustement au caract<63>re pr<70>s,
passez true au troisi<73>me param<61>tre optionnel. passez true au troisi<73>me param<61>tre optionnel. Ceci est l'<27>quivalent de la
fonction PHP <ulink
url="&url.php-manual;wordwrap">wordwrap()</ulink>.
</para> </para>
<example> <example>
<title>wordwrap</title> <title>wordwrap</title>
@@ -66,7 +68,7 @@ $smarty->display('index.tpl');
]]> ]]>
</programlisting> </programlisting>
<para> <para>
ou index.tpl est : o<> index.tpl est :
</para> </para>
<programlisting> <programlisting>
<![CDATA[ <![CDATA[
@@ -82,7 +84,7 @@ ou index.tpl est :
]]> ]]>
</programlisting> </programlisting>
<para> <para>
Ce qui donne en sortie : L'exemple ci-dessus affichera :
</para> </para>
<screen> <screen>
<![CDATA[ <![CDATA[
@@ -110,7 +112,12 @@ n'a pas vu depuis des ann
]]> ]]>
</screen> </screen>
</example> </example>
<para>
Voir aussi
<link linkend="language.modifier.nl2br">nl2br</link>.
</para>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables:
mode: sgml mode: sgml

View File

@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready --> <!-- EN-Revision: 1.3 Maintainer: gerald Status: ready -->
<sect1 id="language.assigned.variables"> <sect1 id="language.assigned.variables">
<title>Variables assign<67>es depuis PHP</title> <title>Variables assign<67>es depuis PHP</title>
<para> <para>
Pour utiliser une variables assign<67>es depuis PHP, il Pour utiliser une variables assign<67>es depuis PHP, il
faut la pr<70>fixer par le symbole dollar <literal>$</literal>. faut la pr<70>fixer par le symbole dollar <literal>$</literal>.
Les variables asign<67>es depuis un template gr<67>ce <20> la fonction Les variables asign<67>es depuis un template gr<67>ce <20> la fonction
<link linkend="language.function.assign">assign</link> sont <link linkend="language.function.assign">{assign}</link> sont
manipul<75>es de la m<>me fa<66>on. manipul<75>es de la m<>me fa<66>on.
</para> </para>
<example> <example>
@@ -102,7 +102,7 @@ $smarty->display('index.tpl');
]]> ]]>
</programlisting> </programlisting>
<para> <para>
Ou index.tpl est : O<> index.tpl est :
</para> </para>
<programlisting> <programlisting>
<![CDATA[ <![CDATA[
@@ -129,7 +129,8 @@ zaphod@slartibartfast.com<br />
<sect2 id="language.variables.objects"> <sect2 id="language.variables.objects">
<title>Objets</title> <title>Objets</title>
<para> <para>
Les attributs des objets assign<67>s depuis PHP peuvent <20>tre utilis<69>es en Les attributs des <link linkend="advanced.features.objects">objets</link>
assign<67>s depuis PHP peuvent <20>tre utilis<69>es en
en sp<73>cifiant le nom apr<70>s le symbole '-&gt;'. en sp<73>cifiant le nom apr<70>s le symbole '-&gt;'.
</para> </para>
<example> <example>
@@ -152,6 +153,7 @@ email: zaphod@slartibartfast.com<br />
</example> </example>
</sect2> </sect2>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables:
mode: sgml mode: sgml

View File

@@ -1,16 +1,14 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready --> <!-- EN-Revision: 1.3 Maintainer: gerald Status: ready -->
<sect1 id="language.config.variables"> <sect1 id="language.config.variables">
<title>Variables charg<72>es depuis des fichiers de configuration</title> <title>Variables charg<72>es depuis des fichiers de configuration</title>
<para> <para>
Les variables r<>cup<75>r<EFBFBD>es depuis un fichier de configuration sont utilis<69>es Les variables r<>cup<75>r<EFBFBD>es depuis un <link linkend="config.files">fichier de configuration</link> sont utilis<69>es
entour<75>es du symbole di<64>se (#), ou via la variable sp<73>ciale smarty entour<75>es du symbole di<64>se (#), ou via la variable sp<73>ciale smarty
<link <link linkend="language.variables.smarty.config">$smarty.config</link>.
linkend="language.variables.smarty.config">$smarty.config</link>.
</para> </para>
<example> <example>
<title>variables de fichiers de configuration</title> <title>variables de fichiers de configuration</title>
<para> <para>
foo.conf foo.conf
@@ -87,9 +85,16 @@ Ce qui donne en sortie, pour les deux exemples :
<para> <para>
Les variables de fichier de configuration ne peuvent <20>tre utilis<69>s tant Les variables de fichier de configuration ne peuvent <20>tre utilis<69>s tant
qu'elles n'ont pas <20>t<EFBFBD> charg<72>es. Cette proc<6F>dure est expliqu<71>e qu'elles n'ont pas <20>t<EFBFBD> charg<72>es. Cette proc<6F>dure est expliqu<71>e
plus loin dans le document, voir <command>config_load</command>. plus loin dans le document, voir <link
linkend="api.config.load"><command>config_load</command></link>.
</para>
<para>
Voir aussi les
<link linkend="language.syntax.variables">variables</link> et les
<link linkend="language.variables.smarty">variables r<>serv<72>es $smarty</link>.
</para> </para>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables:
mode: sgml mode: sgml

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.5 Maintainer: gerald Status: ready --> <!-- EN-Revision: 1.8 Maintainer: gerald Status: ready -->
<sect1 id="language.variables.smarty"> <sect1 id="language.variables.smarty">
<title>Variable r<>serv<72>e {$smarty}</title> <title>Variable r<>serv<72>e {$smarty}</title>
<para> <para>
@@ -49,7 +49,8 @@
Le timestamp courant peut <20>tre r<>cup<75>r<EFBFBD> gr<67>ce <20> {$smarty.now}. Le timestamp courant peut <20>tre r<>cup<75>r<EFBFBD> gr<67>ce <20> {$smarty.now}.
Le nombre obtenu correspond au nombre de secondes <20>coul<75>es depuis Le nombre obtenu correspond au nombre de secondes <20>coul<75>es depuis
Epoch (1 Janvier 1970) et peut <20>tre pass<73> directement au modificateur Epoch (1 Janvier 1970) et peut <20>tre pass<73> directement au modificateur
de variable date <EFBFBD> des fins d'affichage. de variable date <link linkend="language.modifier.date.format">date_format</link>
<20> des fins d'affichage.
</para> </para>
<example> <example>
<title>utilisation de {$smarty.now}</title> <title>utilisation de {$smarty.now}</title>
@@ -65,6 +66,8 @@
<title>{$smarty.const}</title> <title>{$smarty.const}</title>
<para> <para>
Vous pouvez directement acc<63>der aux constantes PHP. Vous pouvez directement acc<63>der aux constantes PHP.
Voir aussi les <link
linkend="smarty.constants">constantes smarty</link>.
</para> </para>
<example> <example>
<title>Utiliser {$smarty.const}</title> <title>Utiliser {$smarty.const}</title>
@@ -82,7 +85,7 @@
La capture r<>alis<69>e via La capture r<>alis<69>e via
<link linkend="language.function.capture">{capture}..{/capture}</link> <link linkend="language.function.capture">{capture}..{/capture}</link>
peut <20>tre r<>cup<75>r<EFBFBD>e par l'interm<72>diaire de la variable {$smarty}. Voir la section peut <20>tre r<>cup<75>r<EFBFBD>e par l'interm<72>diaire de la variable {$smarty}. Voir la section
sur <link linkend="language.function.capture">capture</link> pour un sur <link linkend="language.function.capture">{capture}</link> pour un
exemple <20> ce sujet. exemple <20> ce sujet.
</para> </para>
</sect2> </sect2>
@@ -90,10 +93,11 @@
<sect2 id="language.variables.smarty.config"> <sect2 id="language.variables.smarty.config">
<title>{$smarty.config}</title> <title>{$smarty.config}</title>
<para> <para>
La variable {$smarty} peut <20>tre utilis<69>e pour d<>signer une variable La variable {$smarty} peut <20>tre utilis<69>e pour d<>signer une <link
d'un fichier de configuration. {$smarty.config.foo} est un synonyme de linkend="language.config.variables">variable
d'un fichier de configuration</link>. {$smarty.config.foo} est un synonyme de
{#foo#}. Voir la section <link {#foo#}. Voir la section <link
linkend="language.function.config.load">config_load</link> linkend="language.function.config.load">{config_load}</link>
pour un exemple <20> ce sujet. pour un exemple <20> ce sujet.
</para> </para>
</sect2> </sect2>
@@ -103,8 +107,8 @@
<para> <para>
La variable {$smarty} peut <20>tre utilis<69>e pour acc<63>der aux propri<72>t<EFBFBD>s La variable {$smarty} peut <20>tre utilis<69>e pour acc<63>der aux propri<72>t<EFBFBD>s
des boucles 'section' et 'foreach'. Voir la documentation de des boucles 'section' et 'foreach'. Voir la documentation de
<link linkend="language.function.section">section</link> et <link linkend="language.function.section">{section}</link> et
<link linkend="language.function.foreach">foreach</link>. <link linkend="language.function.foreach">{foreach}</link>.
</para> </para>
</sect2> </sect2>
@@ -115,21 +119,20 @@
</para> </para>
</sect2> </sect2>
<sect2 id="language.variables.smarty.ldelim"> <sect2 id="language.variables.smarty.ldelim">
<title>{$smarty.ldelim}</title> <title>{$smarty.ldelim}, {$smarty.rdelim}</title>
<para> <para>
Cette variable est utilis<69>e pour afficher le d<>l<EFBFBD>miteur gauche. Lisez aussi Cette variable est utilis<69>e pour afficher le d<>l<EFBFBD>miteur gauche et le d<>limiteur droit. Lisez aussi
la partie <link la partie <link
linkend="language.function.ldelim">{ldelim},{rdelim}</link>. linkend="language.function.ldelim">{ldelim},{rdelim}</link>.
</para> </para>
</sect2>
<sect2 id="language.variables.smarty.rdelim">
<title>{$smarty.rdelim}</title>
<para> <para>
Cette variable est utilis<69>e pour afficher le d<>l<EFBFBD>miteur droit. Lisez aussi Voir aussi les
la partie <link linkend="language.function.ldelim">{ldelim},{rdelim}</link>. <link linkend="language.syntax.variables">variables</link> et les
<link linkend="language.config.variables">variables de configuration</link>.
</para> </para>
</sect2> </sect2>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables:
mode: sgml mode: sgml

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <!-- EN-Revision: 1.4 Maintainer: yannick Status: ready -->
<chapter id="caching"> <chapter id="caching">
<title>Cache</title> <title>Cache</title>
<para> <para>
@@ -11,7 +11,8 @@
il sera affich<63> sans qu'il ne soit n<>cessaire de reg<65>n<EFBFBD>rer le r<>sultat. il sera affich<63> sans qu'il ne soit n<>cessaire de reg<65>n<EFBFBD>rer le r<>sultat.
Le syst<73>me de cache peut acc<63>l<EFBFBD>rer les traitements de fa<66>on impressionnante, Le syst<73>me de cache peut acc<63>l<EFBFBD>rer les traitements de fa<66>on impressionnante,
en particulier les templates dont la compilation est tr<74>s longue. Comme en particulier les templates dont la compilation est tr<74>s longue. Comme
le r<>sultat de display() ou de fetch() est dans le cache, un fichier de cache le r<>sultat de <link linkend="api.display">display()</link> ou de
<link linkend="api.fetch">fetch()</link>est dans le cache, un fichier de cache
peut <20>tre compos<6F> de plusieurs fichiers de templates, plusieurs fichiers peut <20>tre compos<6F> de plusieurs fichiers de templates, plusieurs fichiers
de configuration, etc. de configuration, etc.
</para> </para>
@@ -30,6 +31,7 @@
&programmers.caching.caching-cacheable; &programmers.caching.caching-cacheable;
</chapter> </chapter>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables:
mode: sgml mode: sgml

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <!-- EN-Revision: 1.4 Maintainer: yannick Status: ready -->
<chapter id="smarty.constants"> <chapter id="smarty.constants">
<title>Constantes</title> <title>Constantes</title>
@@ -27,6 +27,10 @@ require_once(SMARTY_DIR."Smarty.class.php");
]]> ]]>
</programlisting> </programlisting>
</example> </example>
<para>
Voir aussi
<link linkend="language.variables.smarty.const">$smarty.const</link>.
</para>
</sect1> </sect1>
<sect1 id="constant.smarty.core.dir"> <sect1 id="constant.smarty.core.dir">
<title>SMARTY_CORE_DIR</title> <title>SMARTY_CORE_DIR</title>
@@ -34,7 +38,8 @@ require_once(SMARTY_DIR."Smarty.class.php");
Il doit s'agir du chemin complet du r<>pertoire o<> Il doit s'agir du chemin complet du r<>pertoire o<>
se trouvent les fichiers internes de Smarty. S'il n'est se trouvent les fichiers internes de Smarty. S'il n'est
pas d<>fini, Smarty placera comme valeur par d<>faut la pas d<>fini, Smarty placera comme valeur par d<>faut la
valeur de la constante pr<70>c<EFBFBD>dente SMARTY_DIR. S'il est valeur de la constante pr<70>c<EFBFBD>dente
<link linkend="constant.smarty.dir">SMARTY_DIR</link>. S'il est
d<>fini, le chemin doit se terminer par un slash. Utilisez cette d<>fini, le chemin doit se terminer par un slash. Utilisez cette
constante lorsque vous incluez manuellement n'importe constante lorsque vous incluez manuellement n'importe
quel fichier core.*. quel fichier core.*.
@@ -51,8 +56,14 @@ require_once(SMARTY_CORE_DIR."core.get_microtime.php");
]]> ]]>
</programlisting> </programlisting>
</example> </example>
<para>
Voir aussi
<link linkend="language.variables.smarty.const">$smarty.const</link>.
</para>
</sect1> </sect1>
</chapter> </chapter>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables:
mode: sgml mode: sgml