2
0
Просмотр исходного кода

[DOCUMENTATION] French:
- sync manual

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@17204 44c647ce-9c0f-0410-b52a-842ac1e357ba

mikaelkael 16 лет назад
Родитель
Сommit
39e5a84c04

+ 62 - 0
documentation/manual/fr/module_specs/Zend_Db_Adapter.xml

@@ -1876,6 +1876,68 @@ if (!is_null($version)) {
             </itemizedlist>
         </sect3>
 
+        <sect3 id="zend.db.adapter.adapter-notes.sqlsrv">
+            <title>Microsoft SQL Server</title>
+            <itemizedlist>
+                <listitem>
+                    <para>
+                        Specify this Adapter to the <methodname>factory()</methodname> method with the name 'Sqlsrv'.
+                    </para>
+                </listitem>
+                <listitem>
+                    <para>
+                        This Adapter uses the <acronym>PHP</acronym> extension sqlsrv
+                    </para>
+                </listitem>
+                <listitem>
+                    <para>
+                        Microsoft <acronym>SQL</acronym> Server does not support sequences, so
+                        <methodname>lastInsertId()</methodname> ignores primary key argument and
+                        returns the last value generated for an  key if a table name is specified
+                        or a last insert query returned id. The
+                        <methodname>lastSequenceId()</methodname> method returns
+                        <constant>NULL</constant>.
+                    </para>
+                </listitem>
+                <listitem>
+                    <para>
+                        <classname>Zend_Db_Adapter_Sqlsrv</classname> sets
+                        <constant>QUOTED_IDENTIFIER ON</constant> immediately after connecting to
+                        a <acronym>SQL</acronym> Server database. This makes the driver use the
+                        standard <acronym>SQL</acronym> identifier delimiter symbol
+                        (<emphasis>"</emphasis>) instead of the proprietary square-brackets
+                        syntax <acronym>SQL</acronym> Server uses for delimiting identifiers.
+                    </para>
+                </listitem>
+                <listitem>
+                    <para>
+                        You can specify <property>driver_options</property> as a key in the options
+                        array. The value can be a anything from here <ulink
+                            url="http://msdn.microsoft.com/en-us/library/cc296161(SQL.90).aspx">http://msdn.microsoft.com/en-us/library/cc296161(SQL.90).aspx</ulink>.
+                    </para>
+                </listitem>
+                <listitem>
+                    <para>
+                        You can use <methodname>setTransactionIsolationLevel()</methodname> to set
+                        isolation level for current connection. The value can be
+                        <constant>SQLSRV_TXN_READ_UNCOMMITTED</constant>,
+                        <constant>SQLSRV_TXN_READ_COMMITTED</constant>,
+                        <constant>SQLSRV_TXN_REPEATABLE_READ</constant>,
+                        <constant>SQLSRV_TXN_SNAPSHOT</constant> or
+                        <constant>SQLSRV_TXN_SERIALIZABLE</constant>.
+                    </para>
+                </listitem>
+                <listitem>
+                    <para>
+                        As of Zend Framework 1.9, the minimal supported build of the
+                        <acronym>PHP</acronym> <acronym>SQL</acronym> Server extension from
+                        Microsoft is 1.0.1924.0. and the <acronym>MSSQL</acronym> Server Native
+                        Client version 9.00.3042.00.
+                    </para>
+                </listitem>
+            </itemizedlist>
+        </sect3>
+
         <sect3 id="zend.db.adapter.adapter-notes.pdo-ibm">
             <title>PDO pour IBM DB2 et Informix Dynamic Server (IDS)</title>
 

+ 11 - 5
documentation/manual/fr/module_specs/Zend_Http_Client.xml

@@ -18,9 +18,10 @@
 
         <para>
             Le constructeur de classe accepte deux paramètres : l'URI (ou un objet
-            <code><classname>Zend_Uri_Http</classname></code>), et un tableau de configuration. Ils
-            peuvent aussi être définis avec des méthodes plus tard : <methodname>setUri()</methodname> et
-            <methodname>setConfig()</methodname>. <example id="zend.http.client.introduction.example-1">
+            <code><classname>Zend_Uri_Http</classname></code>), et un tableau ou un objet Zend_Config
+            d'options de configuration. Ils peuvent aussi être définis avec des méthodes plus tard :
+            <methodname>setUri()</methodname> et <methodname>setConfig()</methodname>.
+            <example id="zend.http.client.introduction.example-1">
                     <title>Instanciation d'un objet Zend_Http_Client</title>
 
                     <programlisting language="php"><![CDATA[
@@ -34,6 +35,10 @@ $client->setUri('http://example.org');
 $client->setConfig(array(
     'maxredirects' => 0,
     'timeout'      => 30));
+
+// You can also use a Zend_Config object to set the client's configuration
+$config = new Zend_Config_Ini('httpclient.ini, 'secure');
+$client->setConfig($config);
 ]]></programlisting>
                 </example>
             </para>
@@ -56,8 +61,9 @@ $client->setConfig(array(
 
         <para>
             Le constructeur et <methodname>setConfig()</methodname> acceptent un tableau associatif de
-            paramètre de configuration. Fixer ces paramètres est optionnel, ils ont tous une valeur
-            par défaut. <table id="zend.http.client.configuration.table">
+            paramètre de configuration, ou un objet Zend_Config. Fixer ces paramètres est optionnel,
+            ils ont tous une valeur par défaut.
+                <table id="zend.http.client.configuration.table">
                     <title>Zend_Http_Client : paramètres de configuration</title>
 
                     <tgroup cols="4">

+ 16 - 12
documentation/manual/fr/module_specs/Zend_Service_Amazon.xml

@@ -45,17 +45,19 @@
 
         <para>
             Pour pouvoir utiliser <classname>Zend_Service_Amazon</classname>, vous devez avant
-            tout avoir une clé "developer <acronym>API</acronym>" Amazon. Pour obtenir une telle clé et pour plus
-            d'informations, vous pouvez visitez le site Web <ulink
-            url="http://www.amazon.com/gp/aws/landing.html">Amazon Web Services</ulink>.
+            tout avoir une clé "developer <acronym>API</acronym>" Amazon ainsi que votre clé
+            secrète. Pour obtenir une telle clé et pour plus d'informations, vous pouvez visitez
+            le site Web <ulink url="http://aws.amazon.com/">Amazon Web Services</ulink>.
+            A partir du 15 août 2009, vous ne pourrez utiliser l'API Amazon à travers
+            <classname>Zend_Service_Amazon</classname>, quand spécifiant la clé secrète.
         </para>
 
         <note>
             <title>Attention</title>
 
             <para>
-                Votre clé "developer <acronym>API</acronym>" est liée à votre identité Amazon, donc faites en
-                sorte de conserver votre clé d'API privée.
+                Votre clé "developer <acronym>API</acronym>" et votre clé secret sont liées à votre
+                identité Amazon, donc faites en sorte de les conserver privées.
             </para>
         </note>
 
@@ -68,7 +70,7 @@
             </para>
 
             <programlisting language="php"><![CDATA[
-$amazon = new Zend_Service_Amazon('AMAZON_API_KEY');
+$amazon = new Zend_Service_Amazon('AMAZON_API_KEY', 'US', 'AMAZON_SECRET_KEY');
 $response = $amazon->itemSearch(array('SearchIndex' => 'Books',
                                       'Keywords' => 'php'));
 $results = $amazon->itemSearch(array('SearchIndex' => 'Books',
@@ -89,7 +91,9 @@ foreach ($results as $result) {
             </para>
 
             <programlisting language="php"><![CDATA[
-$query = new Zend_Service_Amazon_Query('AMAZON_API_KEY');
+$query = new Zend_Service_Amazon_Query('AMAZON_API_KEY',
+                                       'US',
+                                       'AMAZON_SECRET_KEY');
 $query->category('Books')->Keywords('PHP');
 $results = $query->search();
 foreach ($results as $result) {
@@ -114,7 +118,7 @@ foreach ($results as $result) {
 
             <programlisting language="php"><![CDATA[
 // Connexion à Amazon France
-$amazon = new Zend_Service_Amazon('AMAZON_API_KEY', 'FR');
+$amazon = new Zend_Service_Amazon('AMAZON_API_KEY', 'FR', 'AMAZON_SECRET_KEY');
 ]]></programlisting>
         </example>
 
@@ -140,7 +144,7 @@ $amazon = new Zend_Service_Amazon('AMAZON_API_KEY', 'FR');
             <title>Rechercher une produit Amazon spécifique avec son ASIN</title>
 
             <programlisting language="php"><![CDATA[
-$amazon = new Zend_Service_Amazon('AMAZON_API_KEY');
+$amazon = new Zend_Service_Amazon('AMAZON_API_KEY', 'US', 'AMAZON_SECRET_KEY');
 $item = $amazon->itemLookup('B0000A432X');
 ]]></programlisting>
         </example>
@@ -177,7 +181,7 @@ $item = $amazon->itemLookup('B0000A432X');
             <title>Lancer des recherches de produits sur Amazon</title>
 
             <programlisting language="php"><![CDATA[
-$amazon = new Zend_Service_Amazon('AMAZON_API_KEY');
+$amazon = new Zend_Service_Amazon('AMAZON_API_KEY', 'US', 'AMAZON_SECRET_KEY');
 $results = $amazon->itemSearch(array('SearchIndex' => 'Books',
                                      'Keywords' => 'php'));
 foreach ($results as $result) {
@@ -195,7 +199,7 @@ foreach ($results as $result) {
             </para>
 
             <programlisting language="php"><![CDATA[
-$amazon = new Zend_Service_Amazon('AMAZON_API_KEY');
+$amazon = new Zend_Service_Amazon('AMAZON_API_KEY', 'US', 'AMAZON_SECRET_KEY');
 $results = $amazon->itemSearch(array(
     'SearchIndex'   => 'Books',
     'Keywords'      => 'php',
@@ -258,7 +262,7 @@ foreach ($results as $result) {
                 </para>
 
                 <programlisting language="php"><![CDATA[
-$query = new Zend_Service_Amazon_Query('MY_API_KEY');
+$query = new Zend_Service_Amazon_Query('MY_API_KEY', 'US', 'AMAZON_SECRET_KEY');
 $query->Category('Books')->Keywords('PHP');
 $results = $query->search();
 foreach ($results as $result) {

+ 14 - 0
documentation/manual/fr/module_specs/Zend_Translate-Adapters.xml

@@ -207,6 +207,20 @@
                 traductions lui-même. N'utilisez pas cet adaptateur comme source de traduction
                 générique.
             </para>
+
+            <warning>
+                <title>Regression in PHP 5.3</title>
+
+                <para>
+                    Prior to PHP 5.3, <functionname>parse_ini_file()</functionname> and 
+                    <functionname>parse_ini_string()</functionname> handled non-ASCII characters 
+                    within INI option keys worked without an issue. However, starting with PHP 5.3,
+                    any such keys will now be silently dropped in the returned array from either 
+                    function. If you had keys utilizing UTF-8 or Latin-1 characters, you may find 
+                    your translations no longer work when using the INI adapter. If this is the 
+                    case, we recommend utilizing a different adapter.
+                </para>
+            </warning>
         </sect3>
 
         <sect3 id="zend.translate.adapter.tbx">