Browse Source

sync en 22743,22762,22821,22917,22970,23013,23014 (work only on easy to update)

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

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

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 22593 -->
+<!-- EN-Revision: 22970 -->
 <sect2 id="zend.application.available-resources.view">
     <title>Zend_Application_Resource_View</title>
 
@@ -30,4 +30,61 @@ resources.view.encoding = "UTF-8"
 resources.view.basePath = APPLICATION_PATH "/views/"
 ]]></programlisting>
     </example>
+
+    <sect3 id="zend.application.available-resources.view.doctype">
+         <title>Defining doctype to use</title>
+
+         <para>
+             If you want to obtain more information about values, see <link 
+             linkend="zend.view.helpers.initial.doctype">Doctype Helper 
+             </link>.
+         </para>
+ 
+         <example id="zend.application.available-resources.view.doctypeExample">
+             <title>Sample doctype configuration</title>
+
+             <para>
+                 The following snippet shows how to set a doctype.
+             </para>
+
+             <programlisting language="ini"><![CDATA[
+resources.view.doctype = "HTML5"
+]]></programlisting>
+         </example>
+     </sect3>
+
+     <sect3 id="zend.application.available-resources.view.contentType">
+        <title>Defining content type and encoding to use</title>
+
+         <para>
+             If you want to obtain more information about values, see <link 
+             linkend="zend.view.helpers.initial.headmeta">HeadMeta Helper
+             </link>.
+         </para>
+
+         <example id="zend.application.available-resources.view.contentTypeExample">
+             <title>Sample content type and encoding configuration</title>
+
+             <para>
+                 The following snippet shows how to set a meta Content-Type.
+             </para>
+
+            <programlisting language="ini"><![CDATA[
+resources.view.contentType = "text/html; charset=UTF-8"
+]]></programlisting>
+         </example>
+
+        <example id="zend.application.available-resources.view.charsetExample">
+            <title>Sample encoding configuration for a HTML5 document</title>
+
+            <para>
+                The following snippet shows how to set a meta charset in HTML5-style.
+            </para>
+
+            <programlisting language="ini"><![CDATA[
+resources.view.doctype = "HTML5"
+resources.view.charset = "UTF-8"
+]]></programlisting>
+        </example>
+     </sect3>
 </sect2>

+ 2 - 2
documentation/manual/ja/module_specs/Zend_Cache-Backends.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 22140 -->
+<!-- EN-Revision: 23014 -->
 <sect1 id="zend.cache.backends">
     <title><classname>Zend_Cache</classname> のバックエンド</title>
     <para>
@@ -31,7 +31,7 @@
                       <row>
                           <entry><emphasis>cache_dir</emphasis></entry>
                           <entry><type>String</type></entry>
-                          <entry>'<filename>/tmp/</filename>'</entry>
+                          <entry>[system temp dir]</entry>
                           <entry>
                               キャッシュファイルを書き込むディレクトリ。
                           </entry>

+ 5 - 5
documentation/manual/ja/module_specs/Zend_Cache-Frontends.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 22140 -->
+<!-- EN-Revision: 23013 -->
 <sect1 id="zend.cache.frontends">
     <title><classname>Zend_Cache</classname> のフロントエンド</title>
 
@@ -145,7 +145,7 @@
 
 $id = 'myBigLoop'; //「キャッシュしたい内容」のキャッシュ ID
 
-if (!($data = $cache->load($id))) {
+if ( ($data = $cache->load($id)) === false ) {
     // キャッシュが存在しませんでした
 
     $data = '';
@@ -168,7 +168,7 @@ $id1 = 'foo';
 $id2 = 'bar';
 
 // ブロック 1
-if (!($data = $cache->load($id1))) {
+if ( ($data = $cache->load($id1)) === false ) {
     // キャッシュが存在しませんでした
 
     $data = '';
@@ -185,7 +185,7 @@ echo($data);
 echo('キャッシュされません !');
 
 // ブロック 2
-if (!($data = $cache->load($id2))) {
+if ( ($data = $cache->load($id2)) === false ) {
     // キャッシュが存在しませんでした
 
     $data = '';
@@ -207,7 +207,7 @@ echo($data);
             <programlisting language="php"><![CDATA[
 // コンパクトな構文
 // (空の文字列や boolean をキャッシュする場合はうまくいきません)
-if (!($data = $cache->load($id))) {
+if ( ($data = $cache->load($id)) === false ) {
 
     // キャッシュが存在しませんでした
 

+ 2 - 2
documentation/manual/ja/module_specs/Zend_Cache-Introduction.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 20765 -->
+<!-- EN-Revision: 23013 -->
 <sect1 id="zend.cache.introduction">
     <title>導入</title>
 
@@ -78,7 +78,7 @@ $cache = Zend_Cache::factory('Core',
 // $cache は先ほどの例で作成したものです
 
 // キャッシュがすでに存在するかどうかを調べます
-if(!$result = $cache->load('myresult')) {
+if( ($result = $cache->load('myresult')) === false ) {
 
     // キャッシュが見つかりませんでした。データベースに接続します
 

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

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 20766 -->
+<!-- EN-Revision: 22856 -->
 <sect3 id="zend.db.profiler.profilers.firebug">
     <title>Firebug によるプロファイリング</title>
 
@@ -57,7 +57,7 @@ $profiler = new Zend_Db_Profiler_Firebug('All DB Queries');
 $profiler->setEnabled(true);
 
 // プロファイラを db アダプタにアタッチします
-$db->setProfiler($profiler)
+$db->setProfiler($profiler);
 
 // フロントコントローラをディスパッチします
 
@@ -74,7 +74,7 @@ $profiler = new Zend_Db_Profiler_Firebug('All DB Queries');
 $profiler->setEnabled(true);
 
 // プロファイラを DB アダプタにアタッチします
-$db->setProfiler($profiler)
+$db->setProfiler($profiler);
 
 $request  = new Zend_Controller_Request_Http();
 $response = new Zend_Controller_Response_Http();

+ 40 - 9
documentation/manual/ja/module_specs/Zend_Filter-StringToUpper.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 17891 -->
+<!-- EN-Revision: 22821 -->
 <sect2 id="zend.filter.set.stringtoupper">
     <title>StringToUpper</title>
 
@@ -8,24 +8,55 @@
         このフィルタは、入力を全て大文字に変換します。
     </para>
 
-    <programlisting language="php"><![CDATA[
+    <sect3 id="zend.filter.set.stringtoupper.options">
+        <title>Supported options for Zend_Filter_StringToUpper</title>
+
+        <para>
+            The following options are supported for
+            <classname>Zend_Filter_StringToUpper</classname>:
+        </para>
+
+        <itemizedlist>
+            <listitem>
+                <para>
+                    <emphasis><property>encoding</property></emphasis>: This option can be used to
+                    set an encoding which has to be used.
+                </para>
+            </listitem>
+        </itemizedlist>
+    </sect3>
+
+    <sect3 id="zend.filter.set.stringtoupper.basic">
+        <title>Basic usage</title>
+
+        <para>
+            This is a basic example for using the <classname>StringToUpper</classname> filter:
+        </para>
+
+        <programlisting language="php"><![CDATA[
 $filter = new Zend_Filter_StringToUpper();
 
 print $filter->filter('Sample');
 // "SAMPLE" を返します
 ]]></programlisting>
 
-    <para>
-        <classname>StringToLower</classname>フィルタの様に、
-        このフィルタは、サーバの現時点のロケール由来の文字だけを処理します。
-        <classname>StringToLower</classname>と同様に、
-        異なる文字セットを使っても動作します。
-    </para>
+    </sect3>
+
+    <sect3 id="zend.filter.set.stringtoupper.encoding">
+        <title>Different encoded strings</title>
+
+        <para>
+            <classname>StringToLower</classname>フィルタの様に、
+            このフィルタは、サーバの現時点のロケール由来の文字だけを処理します。
+            <classname>StringToLower</classname>と同様に、
+            異なる文字セットを使っても動作します。
+        </para>
 
-    <programlisting language="php"><![CDATA[
+        <programlisting language="php"><![CDATA[
 $filter = new Zend_Filter_StringToUpper(array('encoding' => 'UTF-8'));
 
 //または後でこのようにします
 $filter->setEncoding('ISO-8859-1');
 ]]></programlisting>
+    </sect3>
 </sect2>

+ 4 - 4
documentation/manual/ja/module_specs/Zend_Navigation-Pages-Custom.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 20827 -->
+<!-- EN-Revision: 22762 -->
 <sect2 id="zend.navigation.pages.custom">
     <title>カスタム・ページ・タイプの作成</title>
 
@@ -14,12 +14,12 @@
         または<methodname>setConfig()</methodname>に渡されます。
         それらのメソッドは次に<methodname>set()</methodname>メソッドを呼びます。
         そして、オプションをネイティブまたはカスタムのプロパティにマップします。
-        もし、オプション<code>internal_id</code>が与えられたら、
+        もし、オプション<property>internal_id</property>が与えられたら、
         メソッドは<methodname>setInternalId()</methodname>というメソッドを最初に探して、
         それが存在するならばこのメソッドにオプションを渡します。
         メソッドが存在しなければ、オプションはページのカスタム・プロパティとしてセットされて、
-        <code>$internalId = $page->internal_id;</code>または
-        <code>$internalId = $page->get('internal_id');</code>を通じてアクセスできます。
+        <command>$internalId = $page->internal_id;</command>または
+        <command>$internalId = $page->get('internal_id');</command>を通じてアクセスできます。
     </para>
 
     <example id="zend.navigation.custom.example.simple">

+ 15 - 4
documentation/manual/ja/module_specs/Zend_ProgressBar.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 20827 -->
+<!-- EN-Revision: 22743 -->
 <sect1 id="zend.progressbar.introduction" xmlns:xi="http://www.w3.org/2001/XInclude">
     <title>Zend_ProgressBar</title>
 
@@ -78,11 +78,22 @@ $progressBar->finish();
 
             <itemizedlist mark="opencircle">
                 <listitem>
-                    <para><xref linkend="zend.progressbar.adapter.console" /></para>
+                    <para>
+                        <link linkend="zend.progressbar.adapter.console">Zend_ProgressBar_Adapter_Console</link>
+                    </para>
                 </listitem>
 
-                <listitem><para><xref linkend="zend.progressbar.adapter.jspush" /></para></listitem>
-                <listitem><para><xref linkend="zend.progressbar.adapter.jspull" /></para></listitem>
+                <listitem>
+                    <para>
+                        <link linkend="zend.progressbar.adapter.jspush">Zend_ProgressBar_Adapter_JsPush</link>
+                    </para>
+                </listitem>
+
+                <listitem>
+                    <para>
+                        <link linkend="zend.progressbar.adapter.jspull">Zend_ProgressBar_Adapter_JsPull</link>
+                    </para>
+                </listitem>
             </itemizedlist>
         </para>
         <xi:include href="Zend_ProgressBar_Adapter_Console.xml" />

+ 15 - 1
documentation/manual/ja/module_specs/Zend_Version.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 20794 -->
+<!-- EN-Revision: 22970 -->
 <sect1 id="zend.version.reading">
 
     <title>Zend Framework のバージョンの取得</title>
@@ -31,6 +31,20 @@ $cmp = Zend_Version::compareVersion('2.0.0');
 ]]></programlisting>
     </example>
 
+    <para>
+        The static method <methodname>Zend_Version::getLatest()</methodname> provides the version 
+        number of the last stable release available for download on the site 
+        <ulink url="http://framework.zend.com/download/latest">Zend Framework</ulink>.
+    </para>
+
+    <example id="zend.version.latest.example">
+        <title>Example of the getLatest() Method</title>
+
+        <programlisting language="php"><![CDATA[
+// returns 1.11.0 (or a later version)
+echo Zend_Version::getLatest();
+]]></programlisting>
+    </example>
 </sect1>
 <!--
 vim:se ts=4 sw=4 et:

+ 2 - 2
documentation/manual/ja/module_specs/Zend_View-Introduction.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 21829 -->
+<!-- EN-Revision: 22917 -->
 <sect1 id="zend.view.introduction">
 
     <title>導入</title>
@@ -151,7 +151,7 @@ base/path/
                 <para>
                     <property>encoding</property> は <methodname>htmlentities()</methodname> や
                     <methodname>htmlspecialchars()</methodname> などで使用する文字エンコーディングを表します。
-                    デフォルトは ISO-8859-1 (latin1) です。
+                    デフォルトは UTF-8 です。
                     <methodname>setEncoding()</methodname> か、コンストラクタのオプション
                     <property>encoding</property> で設定します。
                 </para>