cvs: smarty /docs/fr/designers/language-modifiers language-modifier-capitalize.xml language-modifier-cat.xml language-modifier-count-characters.xml language-modifier-count-paragraphs.xml language-modifier-count-sentences.xml language-modifier-count-words.xml

"gerald croes" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsgerald1088845891@cvsserver>
gerald		Sat Jul  3 05:11:31 2004 EDT

  Modified files:              
    /smarty/docs/fr/designers/language-modifiers	
                                                	language-modifier-capitalize.xml 
                                                	language-modifier-cat.xml 
                                                	language-modifier-count-characters.xml 
                                                	language-modifier-count-paragraphs.xml 
                                                	language-modifier-count-sentences.xml 
                                                	language-modifier-count-words.xml 
  Log:
  Added <![CDATA[ tags, Sync translations infos, added missing param in count-characters

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
gerald-20040703051131.txt (text/plain, 11.5 KB)
http://cvs.php.net/diff.php/smarty/docs/fr/designers/language-modifiers/language-modifier-capitalize.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/designers/language-modifiers/language-modifier-capitalize.xml
diff -u smarty/docs/fr/designers/language-modifiers/language-modifier-capitalize.xml:1.2 smarty/docs/fr/designers/language-modifiers/language-modifier-capitalize.xml:1.3
--- smarty/docs/fr/designers/language-modifiers/language-modifier-capitalize.xml:1.2	Sun May 23 11:50:22 2004
+++ smarty/docs/fr/designers/language-modifiers/language-modifier-capitalize.xml	Sat Jul  3 05:11:30 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.capitalize">
  <title>capitalize</title>
  <para>
@@ -8,22 +8,32 @@
  </para>
  <example>
   <title>capitalize</title>
-<programlisting>
-index.php:
+   <programlisting role="php">
+<![CDATA[
+<?php
 
 $smarty = new Smarty;
-$smarty-&gt;assign('titreArticle', 'La police commence une campagne de sensibilisation contre la violence routière.');
-$smarty-&gt;display('index.tpl');
-
-index.tpl:
-
-{$titreArticle}
-{$titreArticle|capitalize}
-
-SORTIE:
+$smarty->assign('articleTitle', 'Police begin campaign to rundown jaywalkers.');
+$smarty->display('index.tpl');
 
+?>
+]]>
+   </programlisting>
+   <para>
+    Where index.tpl is:
+   </para>
+   <programlisting>
+<![CDATA[
+{$articleTitle}
+{$articleTitle|capitalize}
+]]>
+   </programlisting>
+   <screen>
+<![CDATA[
 La police commence une campagne de sensibilisation contre la violence routière.
-La Police Commence Une Campagne De Sensibilisation Contre La Violence Routière.</programlisting>
+La Police Commence Une Campagne De Sensibilisation Contre La Violence Routière.
+]]>
+   </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-cat.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/designers/language-modifiers/language-modifier-cat.xml
diff -u smarty/docs/fr/designers/language-modifiers/language-modifier-cat.xml:1.2 smarty/docs/fr/designers/language-modifiers/language-modifier-cat.xml:1.3
--- smarty/docs/fr/designers/language-modifiers/language-modifier-cat.xml:1.2	Sun May 23 11:50:22 2004
+++ smarty/docs/fr/designers/language-modifiers/language-modifier-cat.xml	Sat Jul  3 05:11:30 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.cat">
  <title>cat</title>
  <informaltable frame="all">
@@ -35,20 +35,31 @@
  </para>
  <example>
   <title>cat</title>
-<programlisting>
-index.php:
-
+   <programlisting role="php">
+<![CDATA[
+<?php    
 $smarty = new Smarty;
-$smarty-&gt;assign('TitreArticle', 'Les devins ont prévus que le monde existera toujours ');
-$smarty-&gt;display('index.tpl');
-
-index.tpl:
-
-{$TitreArticle|cat:" demain."}
-
-SORTIE:
-
-Les devins ont prévus que le monde existera toujours demain.</programlisting>
+$smarty->assign('articleTitle', "'Les devins ont prévus que le monde existera toujours");
+$smarty->display('index.tpl');
+?>
+]]>
+   </programlisting>
+   <para>
+    Ou index.tpl est:
+   </para>
+   <programlisting>
+<![CDATA[
+{$articleTitle|cat:" demain."}
+]]>
+   </programlisting>
+   <para>
+    Donne à l'écran:
+   </para>
+   <screen>
+<![CDATA[    
+Les devins ont prévus que le monde existera toujours demain.
+]]>
+   </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-count-characters.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/designers/language-modifiers/language-modifier-count-characters.xml
diff -u smarty/docs/fr/designers/language-modifiers/language-modifier-count-characters.xml:1.2 smarty/docs/fr/designers/language-modifiers/language-modifier-count-characters.xml:1.3
--- smarty/docs/fr/designers/language-modifiers/language-modifier-count-characters.xml:1.2	Sun May 23 11:50:22 2004
+++ smarty/docs/fr/designers/language-modifiers/language-modifier-count-characters.xml	Sat Jul  3 05:11:30 2004
@@ -1,30 +1,71 @@
 <?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.count.characters">
  <title>count_characters</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>boolean</entry>
+      <entry>Non</entry>
+      <entry>false</entry>
+      <entry>Si l'on doit inclure les espaces dans le compte.</entry>
+     </row>
+    </tbody>
+   </tgroup>
+  </informaltable>
  <para>
   Compte le nombre de caractères dans une variable.
  </para>
  <example>
   <title>count_characters</title>
-<programlisting>
-index.php:
+<programlisting role="php">
+<![CDATA[
+<?php
 
 $smarty = new Smarty;
-$smarty-&gt;assign('titreArticle', 'Vagues de froid liées à la température.');
-$smarty-&gt;display('index.tpl');
-
-index.tpl:
+$smarty->assign('titreArticle', 'Vagues de froid liées à la température.');
+$smarty->display('index.tpl');
 
+?>
+]]>
+ </programlisting>
+ <para>
+  Ou index.tpl est:
+ </para>
+ <programlisting>
+<![CDATA[
 {$titreArticle}
 {$titreArticle|count_characters}
-
-SORTIE:
-
+{$titreArticle|count_characters:true}
+]]>
+ </programlisting>
+ <para>
+  Ce qui donne en sortie :
+ </para>
+<screen>
+<![CDATA[
 Vagues de froid liées à la température.
+33
 39
-</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-count-paragraphs.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/designers/language-modifiers/language-modifier-count-paragraphs.xml
diff -u smarty/docs/fr/designers/language-modifiers/language-modifier-count-paragraphs.xml:1.2 smarty/docs/fr/designers/language-modifiers/language-modifier-count-paragraphs.xml:1.3
--- smarty/docs/fr/designers/language-modifiers/language-modifier-count-paragraphs.xml:1.2	Sun May 23 11:50:22 2004
+++ smarty/docs/fr/designers/language-modifiers/language-modifier-count-paragraphs.xml	Sat Jul  3 05:11:30 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.count.paragraphs">
  <title>count_paragraphs</title>
  <para>
@@ -8,22 +8,30 @@
  </para>
  <example>
   <title>count_paragraphs</title>
-<programlisting>
-index.php:
-
+<programlisting role="php">
+<![CDATA[
+<?php
 $smarty = new Smarty;
 $smarty-&gt;assign('TitreArticle', 'La guerre apporte la paix, au prix de la vie de certains innocents.');
 $smarty-&gt;display('index.tpl');
-
-index.tpl:
-
+?>
+]]>
+</programlisting>
+<para>
+  Ou index.tpl est:
+</para>
+<programlisting>
+<![CDATA[
 {$TitreArticle}
 {$TitreArticle|count_paragraphs}
-
-SORTIE:
-
+]]>
+</programlisting>
+<screen>
+<![CDATA[
 La guerre apporte la paix, au prix de la vie des innocents.
-1</programlisting>
+1
+]]>
+</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-count-sentences.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/designers/language-modifiers/language-modifier-count-sentences.xml
diff -u smarty/docs/fr/designers/language-modifiers/language-modifier-count-sentences.xml:1.2 smarty/docs/fr/designers/language-modifiers/language-modifier-count-sentences.xml:1.3
--- smarty/docs/fr/designers/language-modifiers/language-modifier-count-sentences.xml:1.2	Sun May 23 11:50:22 2004
+++ smarty/docs/fr/designers/language-modifiers/language-modifier-count-sentences.xml	Sat Jul  3 05:11:30 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.count.sentences">
  <title>count_sentences</title>
  <para>
@@ -8,26 +8,38 @@
  </para>
  <example>
   <title>count_sentences</title>
-<programlisting>
-index.php:
-
+<programlisting role="php">
+<![CDATA[
+<?php
 $smarty = new Smarty;
-$smarty-&gt;assign('TitreArticle', 'Deux navires rentrent en
+$smarty->assign('TitreArticle', 'Deux navires rentrent en
 collision - Un des deux coule. Des vaches enragées blessent un fermier à
 coups de haches.');
-$smarty-&gt;display('index.tpl');
-
-index.tpl:
-
+$smarty->display('index.tpl');
+?>
+]]>
+</programlisting>
+<para>
+ Where index.tpl is:
+</para>
+<programlisting>
+<![CDATA[
 {$TitreArticle}
 {$TitreArticle|count_sentences}
-
-SORTIE:
+]]>
+</programlisting>
+<para>
+ Donne à l'écran:
+</para>
+<screen>
+<![CDATA[
 Deux navires rentrent en collision
 - Un des deux coule. Des vaches enragées blessent un fermier
 à coups de haches.
 
-2</programlisting>
+2
+]]>
+</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-count-words.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/fr/designers/language-modifiers/language-modifier-count-words.xml
diff -u smarty/docs/fr/designers/language-modifiers/language-modifier-count-words.xml:1.2 smarty/docs/fr/designers/language-modifiers/language-modifier-count-words.xml:1.3
--- smarty/docs/fr/designers/language-modifiers/language-modifier-count-words.xml:1.2	Sun May 23 11:50:22 2004
+++ smarty/docs/fr/designers/language-modifiers/language-modifier-count-words.xml	Sat Jul  3 05:11:30 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.count.words">
  <title>count_words</title>
  <para>
@@ -8,22 +8,35 @@
  </para>
  <example>
   <title>count_words</title>
-<programlisting>
-index.php:
+<programlisting role="php">
+<![CDATA[
+<?php
 
 $smarty = new Smarty;
-$smarty-&gt;assign('TitreArticle', 'Un anneau pour les gouverner tous.');
-$smarty-&gt;display('index.tpl');
-
-index.tpl:
+$smarty->assign('TitreArticle', 'Un anneau pour les gouverner tous.');
+$smarty->display('index.tpl');
 
+?>
+]]>
+</programlisting>
+<para>
+ Ou index.tpl est:
+</para>
+<programlisting>
+<![CDATA[
 {$titreArticle}
 {$titreArticle|count_words}
-
-SORTIE:
-
+]]>
+</programlisting>
+<para>
+ Donne à l'écran:
+</para>
+<screen>
+<![CDATA[
 Un anneau pour les gouverner tous.
-6</programlisting>
+6
+]]>
+</screen>
  </example>
 </sect1>
 <!-- Keep this comment at the end of the file
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.