Browse Source

[DOCUMENTATION] French: sync manual

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@21854 44c647ce-9c0f-0410-b52a-842ac1e357ba
mikaelkael 16 years ago
parent
commit
d169798045

+ 22 - 4
documentation/manual/fr/module_specs/Zend_Translate-Plurals.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 20799 -->
+<!-- EN-Revision: 21661 -->
 <!-- Reviewed: no -->
 <sect1 id="zend.translate.plurals">
     <title>Notation des pluriels pour Translation</title>
@@ -49,7 +49,13 @@
             </para>
 
             <programlisting language="php"><![CDATA[
-$translate = new Zend_Translate('gettext', '/path/to/german.mo', 'de');
+$translate = new Zend_Translate(
+    array(
+        'adapter' => 'gettext',
+        'content' => '/path/to/german.mo',
+        'locale'  => 'de'
+    )
+);
 $translate->plural('Car', 'Cars', $number);
 ]]></programlisting>
         </example>
@@ -76,7 +82,13 @@ $translate->plural('Car', 'Cars', $number);
             </para>
 
             <programlisting language="php"><![CDATA[
-$translate = new Zend_Translate('gettext', '/path/to/german.mo', 'de');
+$translate = new Zend_Translate(
+    array(
+        'adapter' => 'gettext',
+        'content' => '/path/to/german.mo',
+        'locale'  => 'de'
+    )
+);
 $translate->translate(array('Car', 'Cars', $number));
 ]]></programlisting>
         </example>
@@ -93,7 +105,13 @@ $translate->translate(array('Car', 'Cars', $number));
             </para>
 
             <programlisting language="php"><![CDATA[
-$translate = new Zend_Translate('gettext', '/path/to/german.mo', 'de');
+$translate = new Zend_Translate(
+    array(
+        'adapter' => 'gettext',
+        'content' => '/path/to/german.mo',
+        'locale'  => 'de'
+    )
+);
 $translate->translate(array('Car',
                             'Cars first plural',
                             'Cars second plural',

+ 21 - 8
documentation/manual/fr/module_specs/Zend_Translate-Using.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 20799 -->
+<!-- EN-Revision: 21829 -->
 <!-- Reviewed: no -->
 <sect1 id="zend.translate.using">
     <title>Utiliser les adaptateurs de traduction</title>
@@ -36,10 +36,19 @@ print "Correction de la langue ceci est la ligne deux\n";
         <title>Exemple de code PHP multilingue</title>
 
         <programlisting language="php"><![CDATA[
-$translate = new Zend_Translate('gettext',
-                                '/mon/chemin/source-de.mo',
-                                'de');
-$translate->addTranslation('//mon/chemin/fr-source.mo', 'fr');
+$translate = new Zend_Translate(
+    array(
+        'adapter' => 'gettext',
+        'content' => '/my/path/source-de.mo',
+        'locale'  => 'de'
+    )
+);
+$translate->addTranslation(
+    array(
+        'content' => '/path/to/translation/fr-source.mo',
+        'locale'  => 'fr'
+    )
+);
 
 print $translate->_("Exemple")."\n";
 print "=======\n";
@@ -61,9 +70,13 @@ print $translate->_("Correction de la langue ceci est la ligne deux") . "\n";
     <para>
         Créer un nouvel objet de traduction et définir l'adaptateur de base : <programlisting
         role="php"><![CDATA[
-$translate = new Zend_Translate('gettext',
-                                '/chemin/vers/source-de.mo',
-                                'de');
+$translate = new Zend_Translate(
+    array(
+        'adapter' => 'gettext',
+        'content' => '/path/to/translation/source-de.mo',
+        'locale'  => 'de'
+    )
+);
 ]]></programlisting> Dans cet exemple nous avons décidé d'utiliser <emphasis>l'adaptateur
         Gettext</emphasis>. Nous plaçons notre fichier <code>source-de.mo</code> dans le dossier
         <code>/chemin/vers</code>. Le fichier gettext inclura la traduction allemande. Et nous avons

+ 26 - 1
documentation/manual/fr/module_specs/Zend_Validate-Callback.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 19529 -->
+<!-- EN-Revision: 21740 -->
 <!-- Reviewed: no -->
 <sect2 id="zend.validate.set.callback">
     <title>Callback (fonction de rappel)</title>
@@ -9,6 +9,31 @@
         utilisée pour valider la valeur.
     </para>
 
+    <sect3 id="zend.validate.set.callback.options">
+        <title>Options supportées par Zend_Validate_Callback</title>
+
+        <para>
+            Les options suivantes sont supportées par
+            <classname>Zend_Validate_Callback</classname>&#160;:
+        </para>
+
+        <itemizedlist>
+            <listitem>
+                <para>
+                    <emphasis><property>callback</property></emphasis>&#160;: spécifie la fonction
+                    de rappel qui sera utilisée pour la validation.
+                </para>
+            </listitem>
+
+            <listitem>
+                <para>
+                    <emphasis><property>options</property></emphasis>&#160;: spécifie les options
+                    additionnelles qui seront fournies à la fonction de rappel.
+                </para>
+            </listitem>
+        </itemizedlist>
+    </sect3>
+
     <sect3 id="zend.validate.set.callback.basic">
         <title>Utilisation classique</title>
 

+ 27 - 1
documentation/manual/fr/module_specs/Zend_Validate-CreditCard.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 20799 -->
+<!-- EN-Revision: 21238 -->
 <!-- Reviewed: no -->
 <sect2 id="zend.validate.set.creditcard">
     <title>CreditCard</title>
@@ -99,6 +99,32 @@
         </para>
     </note>
 
+    <sect3 id="zend.validate.set.creditcard.options">
+        <title>Options supportées par  Zend_Validate_CreditCard</title>
+
+        <para>
+            Les options suivantes sont supportées par
+            <classname>Zend_Validate_CreditCard</classname>&#160;:
+        </para>
+
+        <itemizedlist>
+            <listitem>
+                <para>
+                    <emphasis><property>service</property></emphasis>&#160;: une fonction de rappel
+                    vers un service en ligne qui sera utilisé en plus pour la validation.
+                </para>
+            </listitem>
+
+            <listitem>
+                <para>
+                    <emphasis><property>type</property></emphasis>&#160;: le type de carte crédit
+                    qui sera validée. Voir ci-dessous la liste des institutions pour de plus
+                    amples détails.
+                </para>
+            </listitem>
+        </itemizedlist>
+    </sect3>
+
     <sect3 id="zend.validate.set.creditcard.basic">
         <title>Utilisation classique</title>
 

+ 48 - 1
documentation/manual/fr/module_specs/Zend_Validate-Db.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 18417 -->
+<!-- EN-Revision: 21241 -->
 <!-- Reviewed: no -->
 <sect2 id="zend.validate.Db">
     <title>Db_RecordExists et Db_NoRecordExists</title>
@@ -10,6 +10,53 @@
         existe (ou pas) dans une table de base de données.
     </para>
 
+    <sect3 id="zend.validate.set.db.options">
+        <title>Options supportées par Zend_Validate_Db_*</title>
+
+        <para>
+            Les options suivantes sont supportées par
+            <classname>Zend_Validate_Db_NoRecordExists</classname> et
+            <classname>Zend_Validate_Db_RecordExists</classname>&#160;:
+        </para>
+
+        <itemizedlist>
+            <listitem>
+                <para>
+                    <emphasis><property>adapter</property></emphasis>&#160;: l'adaptateur de base
+                    de données qui sera utilisé pour la recherche.
+                </para>
+            </listitem>
+
+            <listitem>
+                <para>
+                    <emphasis><property>exclude</property></emphasis>&#160;: jeu d'enregistrements
+                    qui seront exclus de la recherche.
+                </para>
+            </listitem>
+
+            <listitem>
+                <para>
+                    <emphasis><property>field</property></emphasis>&#160;: le champs dans la table
+                    de la base de données dans lequel sera effectué la recherche.
+                </para>
+            </listitem>
+
+            <listitem>
+                <para>
+                    <emphasis><property>schema</property></emphasis>&#160;: le schéma utilisé
+                    pour la recherche.
+                </para>
+            </listitem>
+
+            <listitem>
+                <para>
+                    <emphasis><property>table</property></emphasis>&#160;: la table qui sera
+                    utilisée pour la recherche.
+                </para>
+            </listitem>
+        </itemizedlist>
+    </sect3>
+
     <sect3 id="zend.validate.db.basic-usage">
         <title>Utilisation de base</title>
 

+ 15 - 15
documentation/manual/fr/module_specs/Zend_Validate-EmailAddress.xml

@@ -59,36 +59,36 @@ if ($validateur->isValid($email)) {
 
             <listitem>
                 <para>
-                    <emphasis>hostname</emphasis>: Sets the hostname validator with which the
-                    domain part of the email address will be validated.
+                    <emphasis>deep</emphasis>: Defines if the servers MX records should be verified
+                    by a deep check. When this option is set to <constant>TRUE</constant> then
+                    additionally to MX records also the A, A6 and <constant>AAAA</constant> records
+                    are used to verify if the server accepts emails. This option defaults to
+                    <constant>FALSE</constant>.
                 </para>
             </listitem>
 
             <listitem>
                 <para>
-                    <emphasis>mx</emphasis>: Defines if the MX records from the server should be
-                    detected. If this option is defined to <constant>TRUE</constant> then the MX
-                    records are used to verify if the server
-                    accepts emails. This option defaults to <constant>FALSE</constant>.
+                    <emphasis>domain</emphasis>: Defines if the domain part should be checked.
+                    When this option is set to <constant>FALSE</constant>, then only the local part
+                    of the email address will be checked. In this case the hostname validator will
+                    not be called. This option defaults to <constant>TRUE</constant>.
                 </para>
             </listitem>
 
             <listitem>
                 <para>
-                    <emphasis>deep</emphasis>: Defines if the servers MX records should be verified
-                    by a deep check. When this option is set to <constant>TRUE</constant> then
-                    additionally to MX records also the A, A6 and <constant>AAAA</constant> records
-                    are used to verify if the server accepts emails. This option defaults to
-                    <constant>FALSE</constant>.
+                    <emphasis>hostname</emphasis>: Sets the hostname validator with which the
+                    domain part of the email address will be validated.
                 </para>
             </listitem>
 
             <listitem>
                 <para>
-                    <emphasis>domain</emphasis>: Defines if the domain part should be checked.
-                    When this option is set to <constant>FALSE</constant>, then only the local part
-                    of the email address will be checked. In this case the hostname validator will
-                    not be called. This option defaults to <constant>TRUE</constant>.
+                    <emphasis>mx</emphasis>: Defines if the MX records from the server should be
+                    detected. If this option is defined to <constant>TRUE</constant> then the MX
+                    records are used to verify if the server
+                    accepts emails. This option defaults to <constant>FALSE</constant>.
                 </para>
             </listitem>
         </itemizedlist>

+ 15 - 7
documentation/manual/fr/module_specs/Zend_Validate.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 20799 -->
+<!-- EN-Revision: 21829 -->
 <!-- Reviewed: no -->
 <sect1 id="zend.validate.introduction">
     <title>Introduction</title>
@@ -305,9 +305,13 @@ if (Zend_Validate::is($value, 'OtherValidator', array(array('min' => 1, 'max' =>
         <programlisting language="php"><![CDATA[
 $validator = new Zend_Validate_StringLength(array('min' => 8, 'max' => 12));
 $translate = new Zend_Translate(
-    'array',
-    array(Zend_Validate_StringLength::TOO_SHORT => 'Translated \'%value%\''),
-    'en'
+    array(
+        'adapter' => 'array',
+        'content' => array(
+            Zend_Validate_StringLength::TOO_SHORT => 'Translated \'%value%\''
+        ),
+        'locale' => 'en'
+    )
 );
 
 $validator->setTranslator($translate);
@@ -323,9 +327,13 @@ $validator->setTranslator($translate);
 
         <programlisting language="php"><![CDATA[
 $translate = new Zend_Translate(
-    'array',
-    array(Zend_Validate_StringLength::TOO_SHORT => 'Translated \'%value%\''),
-    'en'
+    array(
+        'adapter' => 'array',
+        'content' => array(
+            Zend_Validate_StringLength::TOO_SHORT => 'Translated \'%value%\''
+        ),
+        'locale' => 'en'
+    )
 );
 Zend_Validate::setDefaultTranslator($translate);
 ]]></programlisting>