Browse Source

sync (ignore manual fixes before 23000)

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23144 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp 15 years ago
parent
commit
0aa59bc469

+ 3 - 3
documentation/manual/ja/module_specs/Zend_Application-Examples.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
 <!-- Reviewed: no -->
-<!-- EN-Revision: 22448 -->
+<!-- EN-Revision: 22741 -->
 <sect1 id="zend.application.examples">
 <sect1 id="zend.application.examples">
     <title>例</title>
     <title>例</title>
 
 
@@ -38,12 +38,12 @@ resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
         <para>
         <para>
             Because these examples use custom code, we need to register the namespace prefixes for
             Because these examples use custom code, we need to register the namespace prefixes for
             that code with our configuration; this is done with the
             that code with our configuration; this is done with the
-            <code>autoloaderNamespaces</code> configuration key, which is an array.
+            <property>autoloaderNamespaces</property> configuration key, which is an array.
         </para>
         </para>
 
 
         <para>
         <para>
             Additionally, to ensure that custom plugin resources are discovered, we need to register
             Additionally, to ensure that custom plugin resources are discovered, we need to register
-            a plugin prefix path with the bootstrap. This is done with the <code>pluginpaths</code>
+            a plugin prefix path with the bootstrap. This is done with the <property>pluginpaths</property>
             configuration key, which is an associative array, with keys denoting the prefix to use,
             configuration key, which is an associative array, with keys denoting the prefix to use,
             and values denoting the path related to that prefix.
             and values denoting the path related to that prefix.
         </para>
         </para>

+ 70 - 20
documentation/manual/ja/module_specs/Zend_Config_Writer.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
 <!-- Reviewed: no -->
-<!-- EN-Revision: 20765 -->
+<!-- EN-Revision: 23103 -->
 <sect1 id="zend.config.writer.introduction">
 <sect1 id="zend.config.writer.introduction">
     <title>Zend_Config_Writer</title>
     <title>Zend_Config_Writer</title>
 
 
@@ -9,7 +9,7 @@
         <classname>Zend_Config</classname> オブジェクトを書き出します。
         <classname>Zend_Config</classname> オブジェクトを書き出します。
         アダプタなしでも動作するので、使用するのも簡単です。
         アダプタなしでも動作するので、使用するのも簡単です。
         デフォルトでは <classname>Zend_Config_Writer</classname>
         デフォルトでは <classname>Zend_Config_Writer</classname>
-        には 3 種類のアダプタが同梱されており、全てファイル・ベースです。
+        には 4 種類のアダプタが同梱されており、全てファイル・ベースです。
         まず、<emphasis>filename</emphasis> や <emphasis>config</emphasis>
         まず、<emphasis>filename</emphasis> や <emphasis>config</emphasis>
         のオプションを指定してライターのインスタンスを作成します。
         のオプションを指定してライターのインスタンスを作成します。
         それからライターの <methodname>write()</methodname> メソッドをコールすると、
         それからライターの <methodname>write()</methodname> メソッドをコールすると、
@@ -32,27 +32,24 @@
             </para>
             </para>
         </listitem>
         </listitem>
 
 
+         <listitem>
+             <para>
+                <classname>Zend_Config_Writer_Json</classname>
+            </para>
+        </listitem>
+
         <listitem>
         <listitem>
             <para>
             <para>
                 <classname>Zend_Config_Writer_Xml</classname>
                 <classname>Zend_Config_Writer_Xml</classname>
             </para>
             </para>
         </listitem>
         </listitem>
-    </itemizedlist>
 
 
-     <para>
-        <acronym>INI</acronym> ライターでは、セクションについてのレンダリング用のモードが2つあります。
-        既定では、トップレベルの構成節は、常にセクション名に含まれます。
-        <command>$writer->setRenderWithoutSections()</command> を呼ぶことにより、
-        オプションの全てが <acronym>INI</acronym> ファイルのグローバル名前空間に含まれます。
-        そして、セクションは使用されません。
-    </para>
-
-    <para>
-        加えて、<classname>Zend_Config_Writer_Ini</classname> にはオプションのパラメータ
-        <emphasis>nestSeparator</emphasis> が用意されています。
-        これは、ノードを区切る文字を定義します。デフォルトはドットひとつで、
-        これは <classname>Zend_Config_Ini</classname> のデフォルトと同じです。
-    </para>
+        <listitem>
+            <para>
+                <classname>Zend_Config_Writer_Yaml</classname>
+            </para>
+        </listitem>
+    </itemizedlist>
 
 
     <para>
     <para>
         <classname>Zend_Config</classname> オブジェクトを変更したり作成したりする際には、
         <classname>Zend_Config</classname> オブジェクトを変更したり作成したりする際には、
@@ -149,12 +146,65 @@ $writer->write();
 
 
     <para>
     <para>
         構成節の文字列を作成するために、ファイル・ベースのライタ
         構成節の文字列を作成するために、ファイル・ベースのライタ
-        ( <acronym>INI</acronym> 、 <acronym>XML</acronym> 及び <acronym>PHP</acronym> 配列)
+        ( <acronym>INI</acronym> 、 <acronym>JSON</acronym>、<acronym>XML</acronym>、
+        <acronym>YAML</acronym> 及び <acronym>PHP</acronym> 配列)
         全てで内部的に <methodname>render()</methodname> が使用されます。
         全てで内部的に <methodname>render()</methodname> が使用されます。
-        コンフィギュレーション・データの文字列表現にアクセスする必要があれば、
-        このメソッドを外部からも使用できます。
+        コンフィギュレーション・データの文字列表現にアクセスするために
+        このメソッドをそれぞれ使用できます。
     </para>
     </para>
 
 
+    <sect2 id="zend.config.writer.introduction.ini-notes">
+        <title>INI ライター特有の注意</title>
+
+        <itemizedlist>
+            <listitem>
+                <para>
+                    <acronym>INI</acronym> ライターでは、セクションについてのレンダリング用のモードが2つあります。
+                    既定では、トップレベルの構成節は、常にセクション名に含まれます。
+                    <command>$writer->setRenderWithoutSections()</command> を呼ぶことにより、
+                    オプションの全てが <acronym>INI</acronym> ファイルのグローバル名前空間に含まれます。
+                    そして、セクションは使用されません。
+                </para>
+            </listitem>
+
+            <listitem>
+                <para>
+                    <classname>Zend_Config_Writer_Ini</classname> にはオプションのパラメータ
+                    <emphasis>nestSeparator</emphasis> が用意されています。
+                    これは、ノードを区切る文字を定義します。デフォルトはドットひとつで、
+                    これは <classname>Zend_Config_Ini</classname> によりデフォルトで受け付けられます。
+                </para>
+            </listitem>
+        </itemizedlist>
+    </sect2>
+
+    <sect2 id="zend.config.writer.introduction.yaml-notes">
+        <title>YAML ライター特有の注意</title>
+
+        <para>
+            The <acronym>YAML</acronym> writer lets you optionally specify an alternate
+            <acronym>YAML</acronym> encoder to use. By default, one is shipped with the framework
+            that is suitable for most configuration tasks. If you find it insufficient, or wish to
+            use more advanced YAML, you may provide an alternate encoder callback.
+        </para>
+
+        <para>
+            The method for doing so is to use the
+            <methodname>Zend_Config_Writer_Yaml::setYamlEncoder()</methodname> method, passing it a
+            valid callback.
+        </para>
+
+        <programlisting language="php"><![CDATA[
+// Use the Symfony Yaml Component:
+$writer = new Zend_Config_Writer_Yaml($filename);
+$writer->setYamlEncoder(array('sfYaml', 'dump'));
+]]></programlisting>
+
+        <para>
+            The above uses the Symfony Components' <classname>sfYaml</classname> component in order
+            to encode the configuration to <acronym>YAML</acronym>.
+        </para>
+    </sect2>
 </sect1>
 </sect1>
 <!--
 <!--
 vim:se ts=4 sw=4 et:
 vim:se ts=4 sw=4 et:

+ 6 - 2
documentation/manual/ja/module_specs/Zend_Mail-DifferentTransports.xml

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
 <!-- Reviewed: no -->
-<!-- EN-Revision: 20819 -->
-<sect1 id="zend.mail.different-transports">
+<!-- EN-Revision: 23128 -->
+<sect1 id="zend.mail.different-transports" xmlns:xi="http://www.w3.org/2001/XInclude">
     <title>異なる転送手段の使用</title>
     <title>異なる転送手段の使用</title>
 
 
     <para>
     <para>
@@ -34,6 +34,10 @@ $mail->send();  // もう一度デフォルトを使用します
             を実装します。
             を実装します。
         </para>
         </para>
     </note>
     </note>
+
+    <xi:include href="Zend_Mail-UsingFileTransport.xml">
+        <xi:fallback><xi:include href="../../en/module_specs/Zend_Mail-UsingFileTransport.xml" /></xi:fallback>
+    </xi:include>
 </sect1>
 </sect1>
 <!--
 <!--
 vim:se ts=4 sw=4 et:
 vim:se ts=4 sw=4 et: