cvs: smarty /docs/fr/programmers/api-variables variable-autoload-filters.xml variable-cache-dir.xml variable-cache-handler-func.xml variable-cache-lifetime.xml variable-cache-modified-check.xml variable-php-handling.xml /docs/fr/programmers/caching caching-cacheable.xml caching-multiple-caches.xml

"Mehdi Achour" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsdidou1098873823@cvsserver>
didou		Wed Oct 27 06:43:43 2004 EDT

  Modified files:              
    /smarty/docs/fr/programmers/api-variables	
                                             	variable-autoload-filters.xml 
                                             	variable-cache-dir.xml 
                                             	variable-cache-handler-func.xml 
                                             	variable-cache-lifetime.xml 
                                             	variable-cache-modified-check.xml 
                                             	variable-php-handling.xml 
    /smarty/docs/fr/programmers/caching	caching-cacheable.xml 
                                       	caching-multiple-caches.xml 
  Log:
  sync with en
  # there's a little make problem, I'll fix this later

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
didou-20041027064343.txt (text/plain, 18 KB)
http://cvs.php.net/diff.php/smarty/docs/fr/programmers/api-variables/variable-autoload-filters.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/programmers/api-variables/variable-autoload-filters.xml
diff -u smarty/docs/fr/programmers/api-variables/variable-autoload-filters.xml:1.2 smarty/docs/fr/programmers/api-variables/variable-autoload-filters.xml:1.3
--- smarty/docs/fr/programmers/api-variables/variable-autoload-filters.xml:1.2	Sun May 23 11:50:38 2004
+++ smarty/docs/fr/programmers/api-variables/variable-autoload-filters.xml	Wed Oct 27 06:43:43 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: didou Status: ready -->
 <sect1 id="variable.autoload.filters">
  <title>$autoload_filters</title>
  <para>
@@ -9,10 +9,12 @@
   variable. Les types de filtres et les valeurs sont des
   tableaux comportant le nom des filtres.
   <informalexample>
-<programlisting>
-$smarty-&gt;autoload_filters = array('pre' =&gt; array('trim', 'stamp'),
+   <programlisting>
+<![CDATA[
+$smarty->autoload_filters = array('pre' => array('trim', 'stamp'),
                                   'output' => array('convert')); 
-        </programlisting>
+]]>
+   </programlisting>
   </informalexample>
  </para>
 </sect1>
http://cvs.php.net/diff.php/smarty/docs/fr/programmers/api-variables/variable-cache-dir.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/programmers/api-variables/variable-cache-dir.xml
diff -u smarty/docs/fr/programmers/api-variables/variable-cache-dir.xml:1.2 smarty/docs/fr/programmers/api-variables/variable-cache-dir.xml:1.3
--- smarty/docs/fr/programmers/api-variables/variable-cache-dir.xml:1.2	Sun May 23 11:50:38 2004
+++ smarty/docs/fr/programmers/api-variables/variable-cache-dir.xml	Wed Oct 27 06:43:43 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: didou Status: ready -->
 <sect1 id="variable.cache.dir">
  <title>$cache_dir</title>
  <para>
http://cvs.php.net/diff.php/smarty/docs/fr/programmers/api-variables/variable-cache-handler-func.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/programmers/api-variables/variable-cache-handler-func.xml
diff -u smarty/docs/fr/programmers/api-variables/variable-cache-handler-func.xml:1.2 smarty/docs/fr/programmers/api-variables/variable-cache-handler-func.xml:1.3
--- smarty/docs/fr/programmers/api-variables/variable-cache-handler-func.xml:1.2	Sun May 23 11:50:38 2004
+++ smarty/docs/fr/programmers/api-variables/variable-cache-handler-func.xml	Wed Oct 27 06:43:43 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: didou Status: ready -->
 <sect1 id="variable.cache.handler.func">
  <title>$cache_handler_func</title>
  <para>
http://cvs.php.net/diff.php/smarty/docs/fr/programmers/api-variables/variable-cache-lifetime.xml?r1=1.3&r2=1.4&ty=u
Index: smarty/docs/fr/programmers/api-variables/variable-cache-lifetime.xml
diff -u smarty/docs/fr/programmers/api-variables/variable-cache-lifetime.xml:1.3 smarty/docs/fr/programmers/api-variables/variable-cache-lifetime.xml:1.4
--- smarty/docs/fr/programmers/api-variables/variable-cache-lifetime.xml:1.3	Sun May 23 12:32:20 2004
+++ smarty/docs/fr/programmers/api-variables/variable-cache-lifetime.xml	Wed Oct 27 06:43:43 2004
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
-<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
+<!-- $Revision: 1.4 $ -->
+<!-- EN-Revision: 1.2 Maintainer: didou Status: ready -->
 <sect1 id="variable.cache.lifetime">
  <title>$cache_lifetime</title>
  <para>
@@ -19,38 +19,37 @@
   désactivant ainsi le cache. Vous pouvez effacer tous les fichiers du cache
   avec la function
   <link linkend="api.clear.all.cache">clear_all_cache()</link>
-   ou de faton individuelle (ou groupée)
-   avec la fonction <link
-   linkend="api.clear.cache">clear_cache()</link>.
+  ou de faton individuelle (ou groupée) avec la fonction <link
+  linkend="api.clear.cache">clear_cache()</link>.
+ </para>
+ <note>
+  <title>Note technique</title>
+  <para>
+   Si vous souhaitez donner a certains templates leur propre durée de vie
+   en cache, vous pouvez le faire en réglant
+   <link linkend="variable.caching">$caching</link> a 2,
+   puis $cache_lifetime a une unique valeur juste avant d'appeler
+   display ou fetch().
   </para>
-  <note>
-   <title>Note technique</title>
-   <para>
-    Si vous souhaitez donner a certains templates leur propre durée de vie
-    en cache, vous pouvez le faire en réglant
-    <link linkend="variable.caching">$caching</link> a 2,
-     puis $cache_lifetime a une unique valeur juste avant d'appeler
-     display ou fetch().
-    </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
-  -->
+ </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
+-->
http://cvs.php.net/diff.php/smarty/docs/fr/programmers/api-variables/variable-cache-modified-check.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/programmers/api-variables/variable-cache-modified-check.xml
diff -u smarty/docs/fr/programmers/api-variables/variable-cache-modified-check.xml:1.2 smarty/docs/fr/programmers/api-variables/variable-cache-modified-check.xml:1.3
--- smarty/docs/fr/programmers/api-variables/variable-cache-modified-check.xml:1.2	Sun May 23 11:50:38 2004
+++ smarty/docs/fr/programmers/api-variables/variable-cache-modified-check.xml	Wed Oct 27 06:43:43 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: didou Status: ready -->
 <sect1 id="variable.cache.modified.check">
  <title>$cache_modified_check</title>
  <para>
http://cvs.php.net/diff.php/smarty/docs/fr/programmers/api-variables/variable-php-handling.xml?r1=1.3&r2=1.4&ty=u
Index: smarty/docs/fr/programmers/api-variables/variable-php-handling.xml
diff -u smarty/docs/fr/programmers/api-variables/variable-php-handling.xml:1.3 smarty/docs/fr/programmers/api-variables/variable-php-handling.xml:1.4
--- smarty/docs/fr/programmers/api-variables/variable-php-handling.xml:1.3	Sun May 23 12:32:20 2004
+++ smarty/docs/fr/programmers/api-variables/variable-php-handling.xml	Wed Oct 27 06:43:43 2004
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
-<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
+<!-- $Revision: 1.4 $ -->
+<!-- EN-Revision: 1.2 Maintainer: didou Status: ready -->
 <sect1 id="variable.php.handling">
  <title>$php_handling</title>
  <para>
@@ -9,42 +9,44 @@
   défaut SMARTY_PHP_PASSTHRU. Notez que cela n'affecte PAS le code
   PHP entouré des balises
   <link linkend="language.function.php">{php}{/php}</link>
-   dans le template.
-  </para>
-  <itemizedlist>
-   <listitem><para>SMARTY_PHP_PASSTHRU - Smarty écrit les balises
+  dans le template.
+ </para>
+ <itemizedlist>
+  <listitem><para>SMARTY_PHP_PASSTHRU - Smarty écrit les balises
    telles quelles.</para></listitem>
-   <listitem><para>SMARTY_PHP_QUOTE - Smarty transforme les balises
+  <listitem><para>SMARTY_PHP_QUOTE - Smarty transforme les balises
    en entités HTML.</para></listitem>
-   <listitem><para>SMARTY_PHP_REMOVE - Smarty supprime les balises
+  <listitem><para>SMARTY_PHP_REMOVE - Smarty supprime les balises
    des templates.</para></listitem>
-   <listitem><para>SMARTY_PHP_ALLOW - Smarty exécute les balises
+  <listitem><para>SMARTY_PHP_ALLOW - Smarty exécute les balises
    comme du code PHP.</para></listitem>
-  </itemizedlist>
+ </itemizedlist>
+ <note>
   <para>
-   NOTE : Intégrer du code PHP dans les templates est vivement
+   Intégrer du code PHP dans les templates est vivement
    déconseillé. Préférez les
    <link linkend="language.custom.functions">fonctions utilisateurs</link>
-    ou les <link linkend="language.modifiers">modificateurs de variables</link>.
-   </para>
-  </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
-  -->
+   ou les <link linkend="language.modifiers">modificateurs de variables</link>.
+  </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
+-->
http://cvs.php.net/diff.php/smarty/docs/fr/programmers/caching/caching-cacheable.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/programmers/caching/caching-cacheable.xml
diff -u smarty/docs/fr/programmers/caching/caching-cacheable.xml:1.2 smarty/docs/fr/programmers/caching/caching-cacheable.xml:1.3
--- smarty/docs/fr/programmers/caching/caching-cacheable.xml:1.2	Sun May 23 11:50:39 2004
+++ smarty/docs/fr/programmers/caching/caching-cacheable.xml	Wed Oct 27 06:43:43 2004
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
-<!-- EN-Revision: 1.3 Maintainer: didou Status: ready -->
+<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.5 Maintainer: didou Status: ready -->
 <sect1 id="caching.cacheable">
  <title>Contrôler la mise en cache des sorties des Plugins</title>
  <para>
@@ -32,9 +32,8 @@
    <title>Eviter la mise en cache du résultat d'un plugin</title>
    <programlisting role="php">
 <![CDATA[
-index.php:
-
 <?php
+
 require('Smarty.class.php');
 $smarty = new Smarty;
 $smarty->caching = true;
@@ -56,19 +55,22 @@
 
 $smarty->display('index.tpl');
 ?>
-
-
-index.tpl:
-
+]]>
+   </programlisting>
+   <para>
+    Où index.tpl contient :
+   </para>
+   <programlisting>
+<![CDATA[
 Time Remaining: {remain endtime=$obj->endtime}
 ]]>
    </programlisting>
    <para>
-    Le nombre de secondes avant que la date de fin de $obj ne soit atteinte change
-    à chaque affichage de la page, même si la page est mise en cache. Comme l'attribut
-    endtime est mis en cache, il n'y a que l'objet qui ait besoin d'être extrait de la
-    base de données lors de la mise en cache de la page, mais pas lors des affichages
-    ultérieurs de la page.
+    Le nombre de secondes avant que la date de fin de $obj ne soit atteinte
+    change à chaque affichage de la page, même si la page est mise en cache. 
+    Comme l'attribut endtime est mis en cache, il n'y a que l'objet qui ait 
+    besoin d'être extrait de la base de données lors de la mise en cache de 
+    la page, mais pas lors des affichages ultérieurs de la page.
    </para>
   </example>
   
@@ -76,8 +78,6 @@
    <title>Eviter la mise en cache d'une portion du template</title>
    <programlisting role="php">
 <![CDATA[
-index.php:
-
 <?php
 require('Smarty.class.php');
 $smarty = new Smarty;
@@ -90,10 +90,13 @@
 
 $smarty->display('index.tpl');
 ?>
-
-
-index.tpl:
-
+]]>
+   </programlisting>
+   <para>
+    Où index.tpl contient :
+   </para>
+   <programlisting>
+<![CDATA[
 Page created: {"0"|date_format:"%D %H:%M:%S"}
 
 {dynamic}
@@ -108,10 +111,10 @@
   </example>
   
   <para>
-   Lors du rechargement de la page, vous remarquerez que les deux dates sont différentes.
-   L'une est "dynamique" et l'autre est "statique". Vous pouvez faire ce que vous voulez
-   entre {dynamic}...{/dynamic} et être sûrs que cela ne sera pas mis en cache comme le
-   reste de la page.
+   Lors du rechargement de la page, vous remarquerez que les deux dates sont 
+   différentes. L'une est "dynamique" et l'autre est "statique". Vous pouvez 
+   faire ce que vous voulez entre {dynamic}...{/dynamic} et être sûrs que 
+   cela ne sera pas mis en cache comme le reste de la page.
   </para>
   
  </sect1>
http://cvs.php.net/diff.php/smarty/docs/fr/programmers/caching/caching-multiple-caches.xml?r1=1.3&r2=1.4&ty=u
Index: smarty/docs/fr/programmers/caching/caching-multiple-caches.xml
diff -u smarty/docs/fr/programmers/caching/caching-multiple-caches.xml:1.3 smarty/docs/fr/programmers/caching/caching-multiple-caches.xml:1.4
--- smarty/docs/fr/programmers/caching/caching-multiple-caches.xml:1.3	Sun May 23 12:32:20 2004
+++ smarty/docs/fr/programmers/caching/caching-multiple-caches.xml	Wed Oct 27 06:43:43 2004
@@ -1,19 +1,21 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
-<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
+<!-- $Revision: 1.4 $ -->
+<!-- EN-Revision: 1.2 Maintainer: didou Status: ready -->
 <sect1 id="caching.multiple.caches">
  <title>Caches multiples pour une seule page</title>
  <para>
   Vous pouvez avoir plusieurs fichiers de caches pour un même appel
-  aux fonctions display() ou fetch(). Imaginons qu'un appel a display('index.tpl')
-  puisse avoir plusieurs résultats, en fonction de certaines conditions, et que
+  aux fonctions display() ou fetch(). Imaginons qu'un appel a 
+  display('index.tpl') puisse avoir plusieurs résultats, en fonction de 
+  certaines conditions, et que
   vous vouliez des fichiers de cache séparés pour chacun d'eux. Vous
   pouvez faire cela en passant un identifiant de cache (cache_id) en
   deuxiéme paramétre a l'appel de fonction.
  </para>
  <example>
   <title>Passage d'un cache_id a display()</title>
-<programlisting>
+  <programlisting>
+<![CDATA[
 require('Smarty.class.php');
 $smarty = new Smarty;
 
@@ -21,7 +23,9 @@
 
 $my_cache_id = $_GET['article_id'];
 
-$smarty->display('index.tpl',$my_cache_id);</programlisting>
+$smarty->display('index.tpl',$my_cache_id);
+]]>
+  </programlisting>
  </example>
  <para>
   Nous passons ci-dessus la variable $my_cache_id a display() comme
@@ -50,11 +54,12 @@
  <para>
   Assurez-vous de bien passer le même identifiant aux fonctions
   <link linkend="api.is.cached">is_cached()</link> et
-   <link linkend="api.clear.cache">clear_cache()</link>.
-   </para>
-   <example>
-    <title>passer un  cache_id a is_cached()</title>
-<programlisting>
+  <link linkend="api.clear.cache">clear_cache()</link>.
+ </para>
+ <example>
+  <title>passer un  cache_id a is_cached()</title>
+  <programlisting>
+<![CDATA[
 require('Smarty.class.php');
 $smarty = new Smarty;
 
@@ -68,16 +73,19 @@
 	$smarty->assign($contents);
 }
 
-$smarty->display('index.tpl',$my_cache_id);</programlisting>
-   </example>
-   <para>
-    Vous pouvez effacer tous les fichiers de cache pour un identifiant
-    de cache particulier en passant null en tant que premier paramétre
-    a clear_cache().
-   </para>
-   <example>
-    <title>effacement de tous les fichiers de cache pour un identifiant de cache particulier</title>
-<programlisting>
+$smarty->display('index.tpl',$my_cache_id);
+]]>
+  </programlisting>
+ </example>
+ <para>
+  Vous pouvez effacer tous les fichiers de cache pour un identifiant
+  de cache particulier en passant null en tant que premier paramétre
+  a clear_cache().
+ </para>
+ <example>
+  <title>effacement de tous les fichiers de cache pour un identifiant de cache particulier</title>
+  <programlisting>
+<![CDATA[
 require('Smarty.class.php');
 $smarty = new Smarty;
 
@@ -86,30 +94,32 @@
 // efface tous les fichiers de cache avec "sports" comme identifiant
 $smarty->clear_cache(null,"sports");
 
-$smarty->display('index.tpl',"sports");</programlisting>
-   </example>
-   <para>
-    De cette maniére vous pouvez "grouper" vos fichiers de cache en leur
-    donnant le même identifiant.
-   </para>
-  </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
-  -->
+$smarty->display('index.tpl',"sports");
+]]>
+  </programlisting>
+ </example>
+ <para>
+  De cette maniére vous pouvez "grouper" vos fichiers de cache en leur
+  donnant le même identifiant.
+ </para>
+</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
+-->
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.