Browse Source

[DOCUMENTATION] French: sync manual

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

+ 33 - 1
documentation/manual/fr/module_specs/Zend_Currency-Usage.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 20100 -->
+<!-- EN-Revision: 21749 -->
 <!-- Reviewed: no -->
 <!-- Reviewed: no -->
 <sect1 id="zend.currency.usage">
 <sect1 id="zend.currency.usage">
     <title>Utiliser Zend_Currency</title>
     <title>Utiliser Zend_Currency</title>
@@ -90,4 +90,36 @@ Zend_Registry::set('Zend_Locale', $locale);
 $currency = new Zend_Currency();
 $currency = new Zend_Currency();
 ]]></programlisting>
 ]]></programlisting>
     </sect2>
     </sect2>
+
+    <sect2 id="zend.currency.usage.territory">
+        <title>Création de monnaie basée sur un pays</title>
+
+        <para>
+            <classname>Zend_Currency</classname> est aussi capable de travailler à partir d'un pays
+            fourni en utilisant <classname>Zend_Locale</classname> en interne.
+        </para>
+
+        <programlisting language="php"><![CDATA[
+$currency = new Zend_Currency('US');
+
+// Voir le réglage courant qui vaut 'en_US'
+// var_dump($currency);
+]]></programlisting>
+
+        <note>
+            <title>Mettre en majuscule les pays</title>
+
+            <para>
+                Quand vous savez que vous utilisez un pays, vous devez le mettre en majuscule.
+                Sinon vous pourriez croire que vous recevez un fausse locale. Par exemple quan
+                vous donnez "om", vous pourriez alors espérer retrouver "ar_OM". Mais en ait
+                il s'agira de "om" qui est aussi une langue.
+            </para>
+
+            <para>
+                Ainsi mettez toujours en majuscule l'entrée quand vous savez qu'il s'agit d'un
+                pays.
+            </para>
+        </note>
+    </sect2>
 </sect1>
 </sect1>

+ 4 - 4
documentation/manual/fr/module_specs/Zend_Filter-Inflector.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 20774 -->
+<!-- EN-Revision: 21606 -->
 <!-- Reviewed: no -->
 <!-- Reviewed: no -->
 <sect1 id="zend.filter.inflector">
 <sect1 id="zend.filter.inflector">
     <title>Zend_Filter_Inflector</title>
     <title>Zend_Filter_Inflector</title>
@@ -433,7 +433,7 @@ $inflector->addRules(array(
             <classname>Zend_Config</classname> peut être utilisé pour spécifier les règles,
             <classname>Zend_Config</classname> peut être utilisé pour spécifier les règles,
             les préfixes des filtres et d'autres choses dans vos inflecteurs. Passez un objet
             les préfixes des filtres et d'autres choses dans vos inflecteurs. Passez un objet
             <classname>Zend_Config</classname> au constructeur ou à la méthode
             <classname>Zend_Config</classname> au constructeur ou à la méthode
-            <methodname>setConfig()</methodname>&#160;:
+            <methodname>setOptions()</methodname>&#160;:
         </para>
         </para>
 
 
         <itemizedlist>
         <itemizedlist>
@@ -479,9 +479,9 @@ $inflector->addRules(array(
 $config    = new Zend_Config($options);
 $config    = new Zend_Config($options);
 $inflector = new Zend_Filter_Inflector($config);
 $inflector = new Zend_Filter_Inflector($config);
 
 
-// Ou via setConfig() :
+// Ou via setOptions() :
 $inflector = new Zend_Filter_Inflector();
 $inflector = new Zend_Filter_Inflector();
-$inflector->setConfig($config);
+$inflector->setOptions($config);
 ]]></programlisting>
 ]]></programlisting>
         </example>
         </example>
     </sect2>
     </sect2>

+ 4 - 2
documentation/manual/fr/module_specs/Zend_Filter_Input.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 20774 -->
+<!-- EN-Revision: 21829 -->
 <!-- Reviewed: no -->
 <!-- Reviewed: no -->
 <sect1 id="zend.filter.input">
 <sect1 id="zend.filter.input">
     <title>Zend_Filter_Input</title>
     <title>Zend_Filter_Input</title>
@@ -373,7 +373,9 @@ $input->setOptions($options);
 
 
             <programlisting language="php"><![CDATA[
             <programlisting language="php"><![CDATA[
 $translate = new Zend_Translate_Adapter_Array(array(
 $translate = new Zend_Translate_Adapter_Array(array(
-    Zend_Filter_Input::MISSING_MESSAGE => "Where is the field?"
+    'content' => array(
+        Zend_Filter_Input::MISSING_MESSAGE => "Where is the field?"
+    )
 );
 );
 
 
 $input = new Zend_Filter_Input($filters, $validators, $data);
 $input = new Zend_Filter_Input($filters, $validators, $data);

+ 13 - 3
documentation/manual/fr/module_specs/Zend_Http_Client-Adapters.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 20779 -->
+<!-- EN-Revision: 21815 -->
 <!-- Reviewed: no -->
 <!-- Reviewed: no -->
 <sect1 id="zend.http.client.adapters">
 <sect1 id="zend.http.client.adapters">
     <title>Zend_Http_Client - Adaptateurs de connexion</title>
     <title>Zend_Http_Client - Adaptateurs de connexion</title>
@@ -100,9 +100,19 @@
                                 <entry>chaîne</entry>
                                 <entry>chaîne</entry>
                                 <entry>null</entry>
                                 <entry>null</entry>
                             </row>
                             </row>
+                            <row>
+                                <entry>sslusecontext</entry>
+                                <entry>
+                                    Active l'utilisation de SSL aux niveaux des connexions proxiées
+                                    même si la connexion proxiée elle-même ne le fait pas.
+                                </entry>
+                                <entry>boolean</entry>
+                                <entry><constant>FALSE</constant></entry>
+                            </row>
                         </tbody>
                         </tbody>
                     </tgroup>
                     </tgroup>
-                </table> <note>
+                        
+                    </table> <note>
                     <title>Connexions <acronym>TCP</acronym> persistantes</title>
                     <title>Connexions <acronym>TCP</acronym> persistantes</title>
 
 
                 <para>
                 <para>
@@ -581,7 +591,7 @@ $client = new Zend_Http_Client('http://www.example.com', array(
 ));
 ));
 
 
 // Force the next request to fail with an exception
 // Force the next request to fail with an exception
-$adapter->nextRequestWillFail(true);
+$adapter->setNextRequestWillFail(true);
 
 
 try {
 try {
     // This call will result in a Zend_Http_Client_Adapter_Exception
     // This call will result in a Zend_Http_Client_Adapter_Exception

+ 3 - 3
documentation/manual/fr/module_specs/Zend_Http_Client-Advanced.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 20779 -->
+<!-- EN-Revision: 21829 -->
 <!-- Reviewed: no -->
 <!-- Reviewed: no -->
 <sect1 id="zend.http.client.advanced">
 <sect1 id="zend.http.client.advanced">
     <title>Zend_Http_Client - Utilisation avancée</title>
     <title>Zend_Http_Client - Utilisation avancée</title>
@@ -427,7 +427,7 @@ $client->setRawData($fp, 'application/zip')->request('PUT');
                 <title>Receiving file from HTTP server with streaming</title>
                 <title>Receiving file from HTTP server with streaming</title>
 
 
                 <programlisting language="php"><![CDATA[
                 <programlisting language="php"><![CDATA[
-$client->setStreaming(); // will use temp file
+$client->setStream(); // will use temp file
 $response = $client->request('GET');
 $response = $client->request('GET');
 // copy file
 // copy file
 copy($response->getStreamName(), "my/downloads/file");
 copy($response->getStreamName(), "my/downloads/file");
@@ -435,7 +435,7 @@ copy($response->getStreamName(), "my/downloads/file");
 $fp = fopen("my/downloads/file2", "w");
 $fp = fopen("my/downloads/file2", "w");
 stream_copy_to_stream($response->getStream(), $fp);
 stream_copy_to_stream($response->getStream(), $fp);
 // Also can write to known file
 // Also can write to known file
-$client->setStreaming("my/downloads/myfile)->request('GET');
+$client->setStream("my/downloads/myfile)->request('GET');
 ]]></programlisting>
 ]]></programlisting>
             </example>
             </example>
         </para>
         </para>

+ 10 - 1
documentation/manual/fr/module_specs/Zend_Http_Client.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 20779 -->
+<!-- EN-Revision: 21826 -->
 <!-- Reviewed: no -->
 <!-- Reviewed: no -->
 <sect1 id="zend.http.client">
 <sect1 id="zend.http.client">
     <title>Introduction</title>
     <title>Introduction</title>
@@ -150,6 +150,15 @@ $client->setConfig($config);
                                 <entry>booléen</entry>
                                 <entry>booléen</entry>
                                 <entry><constant>TRUE</constant></entry>
                                 <entry><constant>TRUE</constant></entry>
                             </row>
                             </row>
+
+                            <row>
+                                <entry>encodecookies</entry>
+                                <entry>Whether to pass the cookie value through urlencode/urldecode.
+                                Enabling this breaks support with some web servers.
+                                Disabling this limits the range of values the cookies can contain.</entry>
+                                <entry>boolean</entry>
+                                <entry><constant>TRUE</constant></entry>
+                            </row>
                         </tbody>
                         </tbody>
                     </tgroup>
                     </tgroup>
                 </table>
                 </table>

+ 26 - 2
documentation/manual/fr/module_specs/Zend_Http_Cookie-Handling.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 20779 -->
+<!-- EN-Revision: 21826 -->
 <!-- Reviewed: no -->
 <!-- Reviewed: no -->
 <sect1 id="zend.http.cookies">
 <sect1 id="zend.http.cookies">
     <title>Zend_Http_Cookie and Zend_Http_CookieJar</title>
     <title>Zend_Http_Cookie and Zend_Http_CookieJar</title>
@@ -90,13 +90,37 @@
 
 
                 <listitem>
                 <listitem>
                     <para>
                     <para>
-                        En appelant la méthode statique <methodname>fromString()</methodname>, avec une
+                        En appelant la méthode statique <methodname>fromString($cookieStr, [$refUri, [$encodeValue]])</methodname>, avec une
                         chaîne de caractères représentant un cookie tel que défini dans les en-têtes
                         chaîne de caractères représentant un cookie tel que défini dans les en-têtes
                         <acronym>HTTP</acronym> "Set-Cookie" (réponse) ou "Cookie" (requête). Dans ce cas la valeur du
                         <acronym>HTTP</acronym> "Set-Cookie" (réponse) ou "Cookie" (requête). Dans ce cas la valeur du
                         cookie doit être encodée. Lorsque la chaîne de caractères représentant un
                         cookie doit être encodée. Lorsque la chaîne de caractères représentant un
                         cookie ne comporte pas de partie "domain", vous devez fournir alors un <acronym>URI</acronym>
                         cookie ne comporte pas de partie "domain", vous devez fournir alors un <acronym>URI</acronym>
                         selon lequel le cookie cherchera son domaine et son chemin.
                         selon lequel le cookie cherchera son domaine et son chemin.
                     </para>
                     </para>
+                    <para>
+                        La méthode <code>fromString</code> accepte les paramètres suivants&#160;:
+                    </para>
+                    <itemizedlist>
+                        <listitem>
+                            <para>
+                            <varname>$cookieStr</varname>: a cookie string as represented in the
+                           'Set-Cookie' <acronym>HTTP</acronym> response header or 'Cookie' 
+                           <acronym>HTTP</acronym> request header (required)
+                            </para>
+                        </listitem>
+                        <listitem>
+                            <para>
+                            <varname>$refUri</varname>: a reference <acronym>URI</acronym> according to which the cookie's domain and path
+                            will be set. (optional, defaults to parsing the value from the $cookieStr)
+                            </para>
+                        </listitem>
+                        <listitem>
+                            <para>
+                            <varname>$encodeValue</varname>: If the value should be passed through urldecode. Also effects the cookie's
+                            behavior when being converted back to a cookie string. (optional, defaults to true)
+                            </para>
+                        </listitem>
+                    </itemizedlist>
                 </listitem>
                 </listitem>
             </itemizedlist> <example id="zend.http.cookies.cookie.instantiating.example-1">
             </itemizedlist> <example id="zend.http.cookies.cookie.instantiating.example-1">
                 <title>Créer un objet Zend_Http_Cookie</title>
                 <title>Créer un objet Zend_Http_Cookie</title>