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

[DOCUMENTATION] Japanese sync 19995, 20020, 20063, 20076, 20078

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20086 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp 16 лет назад
Родитель
Сommit
299a61d35a

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

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 19854 -->
+<!-- EN-Revision: 20076 -->
 <sect1 id="zend.application.available-resources" xmlns:xi="http://www.w3.org/2001/XInclude">
     <title>利用できるリソースプラグイン</title>
 
@@ -15,7 +15,13 @@
     <xi:include href="Zend_Application-AvailableResources-Db.xml" />
     <xi:include href="Zend_Application-AvailableResources-Frontcontroller.xml" />
     <xi:include href="Zend_Application-AvailableResources-Layout.xml" />
+    <xi:include href="Zend_Application-AvailableResources-Locale.xml">
+        <xi:fallback><xi:include href="../../en/module_specs/Zend_Application-AvailableResources-Locale.xml" /></xi:fallback>
+    </xi:include>
     <xi:include href="Zend_Application-AvailableResources-Log.xml" />
+    <xi:include href="Zend_Application-AvailableResources-Mail.xml">
+        <xi:fallback><xi:include href="../../en/module_specs/Zend_Application-AvailableResources-Mail.xml" /></xi:fallback>
+    </xi:include>
     <xi:include href="Zend_Application-AvailableResources-Modules.xml" />
     <xi:include href="Zend_Application-AvailableResources-Navigation.xml" />
     <xi:include href="Zend_Application-AvailableResources-Router.xml" />

+ 38 - 1
documentation/manual/ja/module_specs/Zend_Controller-Router-Route-Rest.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 19753 -->
+<!-- EN-Revision: 20078 -->
 <sect3 id="zend.controller.router.routes.rest">
     <title>Zend_Rest_Route</title>
 
@@ -71,6 +71,9 @@
         </tgroup>
     </table>
 
+    <sect4 id="zend.rest.route_usage">
+        <title>Zend_Rest_Route 利用法</title>
+
     <para>
         <classname>Zend_Rest_Route</classname>をアプリケーション全てで有効にするには、
         構成パラメータ無しで構築して、フロントコントローラにデフォルトのルートとして追加してください。
@@ -114,6 +117,40 @@ $restRoute = new Zend_Rest_Route($front, array(), array(
 $front->getRouter()->addRoute('rest', $restRoute);
 ]]></programlisting>
 
+    </sect4>
+
+    <!-- TODO : to be translated -->
+    <sect4 id="zend.rest.route_config">
+        <title>Zend_Rest_Route with Zend_Config_Ini</title>
+
+    <para>
+        To use Zend_Rest_Route from an INI config file, use a route type
+        parameter and set the config options:
+    </para>
+
+    <programlisting language="ini"><![CDATA[
+routes.rest.type = Zend_Rest_Route
+routes.rest.defaults.controller = object
+routes.rest.mod = project,user
+]]></programlisting>
+
+    <para>The 'type' option designates the RESTful routing config type.
+    The 'defaults' option is used to specify custom default
+    module, controller, and/or actions for the route. All other options
+    in the config group are treated as RESTful module names, and their
+    values are RESTful controller names. The example config defines
+    Mod_ProjectController and Mod_UserController as RESTful controllers.</para>
+
+    <para>Then use the addConfig() method of the Rewrite router object:</para>
+
+    <programlisting language="php"><![CDATA[
+$config = new Zend_Config_Ini('path/to/routes.ini');
+$router = new Zend_Controller_Router_Rewrite();
+$router->addConfig($config, 'routes');
+]]></programlisting>
+
+    </sect4>
+
     <sect4 id="zend.rest.controller">
         <title>Zend_Rest_Controller</title>
 

+ 4 - 4
documentation/manual/ja/module_specs/Zend_Queue-Custom.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 16700 -->
+<!-- EN-Revision: 20063 -->
 <sect1 id="zend.queue.custom">
     <title>Zend_Queueのカスタマイズ</title>
 
@@ -47,7 +47,7 @@ $options = array(
 );
 
 $adapter = new Custom_DbForUpdate($options);
-$queue = Zend_Queue($adapter, $options);
+$queue = new Zend_Queue($adapter, $options);
 ]]></programlisting>
 
         <para>
@@ -56,7 +56,7 @@ $queue = Zend_Queue($adapter, $options);
 
         <programlisting language="php"><![CDATA[
 $adapter = new MyCustom_Adapter($options);
-$queue   = Zend_Queue($options);
+$queue   = new Zend_Queue($options);
 $queue->setAdapter($adapter);
 echo "Adapter: ", get_class($queue->getAdapter()), "\n";
 ]]></programlisting>
@@ -76,7 +76,7 @@ $options = array(
         'type'       => 'pdo_mysql'
     )
 );
-$queue = Zend_Queue('DbForUpdate', $config); // Custom_DbForUpdate をロード
+$queue = new Zend_Queue('DbForUpdate', $config); // Custom_DbForUpdate をロード
 ]]></programlisting>
     </sect2>
 

+ 2 - 2
documentation/manual/ja/module_specs/Zend_Queue-Framework.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 18733 -->
+<!-- EN-Revision: 20063 -->
 <sect1 id="zend.queue.framework">
     <title>フレームワーク</title>
 
@@ -31,7 +31,7 @@ $options = array(
 
 // データベース待ち行列を作成します。
 // Zend_Queue はクラス名として Zend_Queue_Adapter_ の後に 'Db' を付加します。
-$queue = Zend_Queue('Db', $options);
+$queue = new Zend_Queue('Db', $options);
 ]]></programlisting>
 
     <para>

+ 4 - 7
documentation/manual/ja/module_specs/Zend_Validate-Set.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 19692 -->
+<!-- EN-Revision: 20020 -->
 <sect1 id="zend.validate.set" xmlns:xi="http://www.w3.org/2001/XInclude">
 
     <title>標準のバリデーションクラス群</title>
@@ -196,12 +196,9 @@ if ($validator->isValid($iban)) {
         </para>
     </sect2>
 
-    <sect2 id="zend.validate.set.not_empty">
-        <title>NotEmpty</title>
-        <para>
-           <code>$value</code> が空の値でない場合にのみ <constant>TRUE</constant> を返します。
-        </para>
-    </sect2>
+    <xi:include href="Zend_Validate-NotEmpty.xml">
+        <xi:fallback><xi:include href="../../en/module_specs/Zend_Validate-NotEmpty.xml" /></xi:fallback>
+    </xi:include>
 
     <xi:include href="Zend_Validate-PostCode.xml">
         <xi:fallback><xi:include href="../../en/module_specs/Zend_Validate-PostCode.xml" /></xi:fallback>

+ 1 - 1
documentation/manual/ja/ref/language-snippets.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 19887 -->
+<!-- EN-Revision: 19995 -->
 <!-- links -->
 <!ENTITY lang                                   'ja'>
 <!ENTITY zf.manual.link                         'http://framework.zend.com/manual/ja/'>