Jelajahi Sumber

[DOCUMENTATION] Japanese sync

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20272 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp 16 tahun lalu
induk
melakukan
2c2ded8279

+ 5 - 1
documentation/manual/ja/module_specs/Zend_Application-AvailableResources-Db.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 16845 -->
+<!-- EN-Revision: 20111 -->
 <sect2 id="zend.application.available-resources.db">
     <title>Zend_Application_Resource_Db</title>
 
@@ -9,6 +9,10 @@
         それに渡されるオプションに基づいて<classname>Zend_Db</classname>アダプタを初期化します。
         デフォルトで、<classname>Zend_Db_Table</classname>用のデフォルト・アダプタとして、
         アダプタを設定します。
+        <!-- TODO : to be translated -->
+        If you want to use mutliple databases simultaneously, you can use the <link
+        linkend="zend.application.available-resources.multidb">Multidb Resource
+        Plugin</link>.
     </para>
 
     <para>

+ 17 - 3
documentation/manual/ja/module_specs/Zend_Controller-Plugins-ErrorHandler.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 17175 -->
+<!-- EN-Revision: 20249 -->
 <sect3 id="zend.controller.plugins.standard.errorhandler">
     <title>Zend_Controller_Plugin_ErrorHandler</title>
 
@@ -18,6 +18,10 @@
 
     <itemizedlist>
         <listitem>
+            <para>一致したルートが見つからない場合に発生する例外</para>
+        </listitem>
+
+        <listitem>
             <para>コントローラやアクションメソッドが見つからない場合に発生する例外</para>
         </listitem>
 
@@ -30,7 +34,7 @@
         言い換えると、<emphasis>ErrorHandler</emphasis> プラグインが想定しているのは、<acronym>HTTP</acronym>
         404 型のエラー (ページが存在しない) と 500 型のエラー (内部エラー)
         ということになります。
-        他のプラグインやルーティング時に発生したそれ以外の例外の処理は、想定していません。
+        他のプラグインで発生した例外の処理は、想定していません。
     </para>
 
     <para>
@@ -128,6 +132,13 @@ class ErrorController extends Zend_Controller_Action
         <itemizedlist>
             <listitem>
                 <para>
+                    <constant>Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ROUTE</constant>
+                    は、一致したルートが見つからなかったことを表します。
+                </para>
+            </listitem>
+
+            <listitem>
+                <para>
                     <constant>Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER</constant>
                     は、コントローラが見つからなかったことを表します。
                 </para>
@@ -149,7 +160,7 @@ class ErrorController extends Zend_Controller_Action
         </itemizedlist>
 
         <para>
-            最初のふたつの型であった場合に、404 ページを返せばいいわけです。
+            最初のつの型であった場合に、404 ページを返せばいいわけです。
         </para>
 
         <programlisting language="php"><![CDATA[
@@ -160,6 +171,7 @@ class ErrorController extends Zend_Controller_Action
         $errors = $this->_getParam('error_handler');
 
         switch ($errors->type) {
+            case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ROUTE:
             case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER:
             case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION:
                 // 404 エラー -- コントローラあるいはアクションが見つかりません
@@ -189,6 +201,7 @@ public function errorAction()
         $errors = $this->_getParam('error_handler');
 
         switch ($errors->type) {
+            case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ROUTE:
             case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER:
             case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION:
                 // 404 エラー -- コントローラあるいはアクションが見つかりません
@@ -293,6 +306,7 @@ class ErrorController extends Zend_Controller_Action
         $errors = $this->_getParam('error_handler');
 
         switch ($errors->type) {
+            case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ROUTE:
             case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER:
             case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION:
                 // 404 エラー -- コントローラあるいはアクションが見つかりません

+ 3 - 3
documentation/manual/ja/module_specs/Zend_Db_Profiler.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 19484 -->
+<!-- EN-Revision: 20115 -->
 <sect1 id="zend.db.profiler" xmlns:xi="http://www.w3.org/2001/XInclude">
 
     <title>Zend_Db_Profiler</title>
@@ -178,7 +178,7 @@ $profiler = $db->getProfiler();
                     <methodname>getLastQueryProfile()</methodname> は、最後に
                     (直近に) 実行されたクエリの情報を (そのクエリが
                     完了したか否かにかかわらず) 返します
-                    (クエリが完了していない場合は、終了時刻が null となります)。
+                    (クエリが完了していない場合は、終了時刻が <constant>NULL</constant> となります)。
                 </para>
             </listitem>
             <listitem>
@@ -281,7 +281,7 @@ echo "一番時間のかかっているクエリ: \n" . $longestQuery . "\n";
             <para>
                 <methodname>setFilterElapsedSecs()</methodname> は、クエリの情報を取得する条件として
                 実行所要時間の最小値を指定します。このフィルタを削除するには、
-                メソッドに null 値を渡します。
+                メソッドに <constant>NULL</constant> 値を渡します。
             </para>
 
             <programlisting language="php"><![CDATA[

+ 2 - 2
documentation/manual/ja/module_specs/Zend_Db_Table.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 19139 -->
+<!-- EN-Revision: 20115 -->
 <sect1 id="zend.db.table">
 
     <title>Zend_Db_Table</title>
@@ -1203,7 +1203,7 @@ $rows = $table->fetchAll($select);
                 制約を強要して正しい形式の SELECT クエリを作成することです。
                 しかし時には、<classname>Zend_Db_Table_Row</classname> の柔軟性が必要であって
                 行を更新したり削除したりすることはないということもあります。
-                そんな場合には、setIntegrityCheck に false
+                そんな場合には、setIntegrityCheck に <constant>FALSE</constant>
                 を渡して行/行セットを取得できます。
                 この場合に返される行/行セットは 'ロックされた' 行
                 (save()、delete() やフィールドの設定用メソッドを実行すると例外が発生する)

+ 2 - 2
documentation/manual/ja/module_specs/Zend_Db_Table_Rowset.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 18822 -->
+<!-- EN-Revision: 20115 -->
 <sect1 id="zend.db.table.rowset">
 
     <title>Zend_Db_Table_Rowset</title>
@@ -178,7 +178,7 @@ $row9->save();
                 <methodname>getRow()</methodname> の最初のパラメータは、位置を表す整数値です。
                 2 番目のパラメータはオプションで、boolean 値を指定します。
                 これは、Rowset イテレータも同時にその場所に移動させるのかどうかを表します
-                (デフォルトは false です)。このメソッドはデフォルトでは
+                (デフォルトは <constant>FALSE</constant> です)。このメソッドはデフォルトでは
                 <classname>Zend_Db_Table_Row</classname> オブジェクトを返します。
                 指定した位置が存在しない場合は例外をスローします。
                 例を示します。

+ 24 - 1
documentation/manual/ja/module_specs/Zend_Dojo-View-Dojo.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 17987 -->
+<!-- EN-Revision: 20143 -->
 <sect2 id="zend.dojo.view.dojo">
     <title>dojo() ビューヘルパー</title>
 
@@ -111,6 +111,29 @@ $this->dojo()->enable()
         </para>
     </example>
 
+    <!-- TODO : to be translated -->
+    <note>
+        <title>UTF-8 encoding used by default</title>
+
+        <para>
+            By default, Zend Framework uses <acronym>UTF-8</acronym> as its default encoding, and,
+            specific to this case, <classname>Zend_View</classname> does as well. Character encoding
+            can be set differently on the view object itself using the
+            <methodname>setEncoding()</methodname> method (or the the <varname>encoding</varname>
+            instantiation parameter). However, since <classname>Zend_View_Interface</classname> does
+            not define accessors for encoding, it's possible that if you are using a custom view
+            implementation with the Dojo view helper, you will not have a
+            <methodname>getEncoding()</methodname> method, which is what the view helper uses
+            internally for determining the character set in which to encode.
+        </para>
+
+        <para>
+            If you do not want to utilize <acronym>UTF-8</acronym> in such a situation, you will
+            need to implement a <methodname>getEncoding()</methodname> method in your custom view
+            implementation.
+        </para>
+    </note>
+
     <sect3 id="zend.dojo.view.dojo.declarative">
         <title>プログラム的 (Programmatic) および宣言的 (Declarative) な Dojo の使用法</title>
 

+ 43 - 2
documentation/manual/ja/ref/migration-110.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 20142 -->
+<!-- EN-Revision: 20249 -->
 <sect1 id="migration.110">
     <title>Zend Framework 1.10</title>
 
@@ -10,6 +10,48 @@
     </para>
 
     <!-- TODO : to be translated -->
+    <sect2 id="migration.110.zend.controller.front">
+        <title>Zend_Controller_Front</title>
+
+        <para>
+            A wrong behaviour was fixed, when there was no module route and no route
+            matched the given request. Previously, the router returned an unmodified
+            request object, so the front controller just displayed the default controller
+            and action. Since Zend Framework 1.10, the router will correctly as noted
+            in the router interface, throw an exception if no route matches. The error
+            plugin will then catch that exception and forward to the error controller.
+            You can then test for that specific error with the constant
+            <constant></constant>:
+        </para>
+
+        <programlisting language="php"><![CDATA[
+/**
+ * Before 1.10
+ */
+    public function errorAction()
+    {
+        $errors = $this->_getParam('error_handler');
+
+        switch ($errors->type) {
+            case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER:
+            case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION:
+    // ...
+
+/**
+ * With 1.10
+ */
+    public function errorAction()
+    {
+        $errors = $this->_getParam('error_handler');
+
+        switch ($errors->type) {
+            case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ROUTE:
+            case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER:
+            case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION:
+    // ...
+]]></programlisting>
+    </sect2>
+
     <sect2 id="migration.110.zend.feed.reader">
         <title>Zend_Feed_Reader</title>
 
@@ -73,7 +115,6 @@ $authors = $feed->getAuthors()->getValues();
     <sect2 id="migration.110.zend.file.transfer">
         <title>Zend_File_Transfer</title>
 
-        <!-- TODO : to be translated -->
         <sect3 id="migration.110.zend.file.transfer.files">
             <title>Security change</title>