Ver Fonte

[DOCUMENT] Japanese sync

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@21780 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp há 16 anos atrás
pai
commit
cb8653951e

+ 24 - 23
documentation/manual/ja/module_specs/Zend_File_Transfer-Introduction.xml

@@ -1,8 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 20174 -->
+<!-- EN-Revision: 21606 -->
 <sect1 id="zend.file.transfer.introduction">
-
     <title>Zend_File_Transfer</title>
 
     <para>
@@ -16,6 +15,7 @@
 
     <note>
         <title>制限</title>
+
         <para>
             現在の <classname>Zend_File_Transfer</classname>
             の実装では、<acronym>HTTP</acronym> Post によるアップロードにしか対応していません。
@@ -30,6 +30,7 @@
 
     <note>
         <title>フォーム</title>
+
         <para>
             <classname>Zend_Form</classname> を使う場合は <classname>Zend_Form</classname>
             の <acronym>API</acronym> を使うようにし、<classname>Zend_File_Transfer</classname>
@@ -50,11 +51,13 @@
 
     <example id="zend.file.transfer.introduction.example">
         <title>シンプルなファイルアップロードフォーム</title>
+
         <para>
             これは、基本的なファイルアップロード処理の例です。
             まずはファイルアップロードフォームから。
             今回の例では。アップロードしたいファイルはひとつです。
         </para>
+
         <programlisting language="xml"><![CDATA[
 <form enctype="multipart/form-data" action="/file/upload" method="POST">
     <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
@@ -63,17 +66,20 @@
     <input type="submit" value="アップロード" />
 </form>
 ]]></programlisting>
+
         <para>
             HTML を直接作成するのではなく、利便性を考慮して
             <link linkend="zend.form.standardElements.file">Zend_Form_Element_File</link>
             を使っていることに注意しましょう。
         </para>
+
         <para>
             次はアップロードしたファイルを受け取る側です。
-            今回の例では、受け取る側は <code>/file/upload</code>
-            となります。そこで、<code>file</code> コントローラにアクション
-            <code>upload</code> を作成します。
+            今回の例では、受け取る側は <filename>/file/upload</filename>
+            となります。そこで、 'file' コントローラにアクション
+            <methodname>upload()</methodname> を作成します。
         </para>
+
         <programlisting language="php"><![CDATA[
 $adapter = new Zend_File_Transfer_Adapter_Http();
 
@@ -84,9 +90,10 @@ if (!$adapter->receive()) {
     echo implode("\n", $messages);
 }
 ]]></programlisting>
+
         <para>
             このコードは <classname>Zend_File_Transfer</classname> のもっともシンプルな使用法を示すものです。
-            ローカルの保存先を <code>setDestination</code> メソッドで指定して
+            ローカルの保存先を <methodname>setDestination()</methodname> メソッドで指定して
             <methodname>receive()</methodname> メソッドをコールします。
             アップロード時に何らかのエラーが発生した場合は、
             返された例外の中でその情報を取得できます。
@@ -96,6 +103,7 @@ if (!$adapter->receive()) {
 
     <note>
         <title>注意</title>
+
         <para>
             この例は、<classname>Zend_File_Transfer</classname> の基本的な <acronym>API</acronym> を説明するためだけのものです。
             これをそのまま実際の環境で使用しては
@@ -106,7 +114,6 @@ if (!$adapter->receive()) {
     </note>
 
     <sect2 id="zend.file.transfer.introduction.adapters">
-
         <title>Zend_File_Transfer がサポートするアダプタ</title>
 
         <para>
@@ -121,7 +128,6 @@ if (!$adapter->receive()) {
     </sect2>
 
     <sect2 id="zend.file.transfer.introduction.options">
-
         <title>Zend_File_Transfer のオプション</title>
 
         <para>
@@ -145,7 +151,6 @@ if (!$adapter->receive()) {
     </sect2>
 
     <sect2 id="zend.file.transfer.introduction.checking">
-
         <title>ファイルのチェック</title>
 
         <para>
@@ -162,7 +167,7 @@ if (!$adapter->receive()) {
                     ファイル名を省略した場合はすべてのファイルをチェックします。
                     <methodname>isValid()</methodname> を <methodname>receive()</methodname> の前にコールすることもできます。
                     この場合、<methodname>receive()</methodname> がファイルを受信する際に内部的に
-                    <code>isValid</code> をコールすることはありません。
+                    <methodname>isValid()</methodname> をコールすることはありません。
                 </para>
             </listitem>
 
@@ -214,7 +219,6 @@ $upload->receive();
     </sect2>
 
     <sect2 id="zend.file.transfer.introduction.informations">
-
         <title>さらなるファイル情報</title>
 
         <para>
@@ -300,9 +304,9 @@ $names = $upload->getFileName('foo');
 
         <para>
             <methodname>getFileSize()</methodname> は、デフォルトではファイルサイズを SI 記法で返します。
-            つまり、たとえば <code>2048</code> ではなく <code>2kB</code>
+            つまり、たとえば <emphasis>2048</emphasis> ではなく <emphasis>2kB</emphasis>
             のようになるということです。単にサイズだけが知りたい場合は、オプション
-            <code>useByteString</code> を <constant>FALSE</constant> に設定してください。
+            <property>useByteString</property> を <constant>FALSE</constant> に設定してください。
         </para>
 
         <example id="zend.file.transfer.introduction.informations.example.getfilesize">
@@ -322,7 +326,6 @@ $size = $upload->getFileSize();
 
         </example>
 
-        <!-- TODO : to be translated -->
         <note>
             <title>Client given filesize</title>
 
@@ -338,7 +341,7 @@ $size = $upload->getFileSize();
             使用できるアルゴリズムについては
             <ulink url="http://php.net/hash_algos">PHP の hash_algos メソッド</ulink>
             を参照ください。アルゴリズムを省略した場合は
-            <code>crc32</code> をデフォルトのアルゴリズムとして使用します。
+            <emphasis>crc32</emphasis> をデフォルトのアルゴリズムとして使用します。
         </para>
 
         <example id="zend.file.transfer.introduction.informations.example2">
@@ -359,6 +362,7 @@ $names = $upload->getHash('crc32', 'foo');
 
         <note>
             <title>返り値</title>
+
             <para>
                 複数のファイルを指定した場合は、返される結果が配列となることに注意しましょう。
             </para>
@@ -384,7 +388,6 @@ $names = $upload->getMimeType('foo');
 
         </example>
 
-        <!-- TODO : to be translated -->
         <note>
             <title>Client given mimetype</title>
 
@@ -405,7 +408,6 @@ $names = $upload->getMimeType('foo');
             </para>
         </warning>
 
-        <!-- TODO : to be translated -->
         <warning>
             <title>Original data within $_FILES</title>
 
@@ -425,22 +427,21 @@ $names = $upload->getMimeType('foo');
     </sect2>
 
     <sect2 id="zend.file.transfer.introduction.uploadprogress">
-
         <title>ファイルアップロードの進捗</title>
 
         <para>
             <classname>Zend_File_Transfer</classname> では、ファイルアップロードの進捗状況を知ることができます。
-            この機能を使用するには、<code>APC</code> 拡張モジュール
+            この機能を使用するには、<acronym>APC</acronym> 拡張モジュール
             (ほとんどの <acronym>PHP</acronym> 環境においてデフォルトで提供されています)
-            あるいは <code>uploadprogress</code> 拡張モジュールが必要です。
+            あるいは <classname>uploadprogress</classname> 拡張モジュールが必要です。
             これらの拡張モジュールがインストールされていれば、自動検出してそれを使用します。
             進捗状況を取得するには、いくつかの事前条件があります。
         </para>
 
         <para>
-            まず、<code>APC</code> あるいは <code>uploadprogress</code>
-            のいずれかを有効にする必要があります。<code>APC</code>
-            の機能は php.ini で無効化できることに注意しましょう。
+            まず、<acronym>APC</acronym> あるいは <classname>uploadprogress</classname>
+            のいずれかを有効にする必要があります。<acronym>APC</acronym>
+            の機能は <filename>php.ini</filename> で無効化できることに注意しましょう。
         </para>
 
         <para>

+ 32 - 64
documentation/manual/ja/module_specs/Zend_Tool_Project-Providers.xml

@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 16653 -->
+<!-- EN-Revision: 21741 -->
 <sect1 id="zend.tool.project.providers">
-    <title>Zend Toolプロジェクトプロバイダー</title>
+    <title>Zend_Tool プロジェクトプロバイダー</title>
 
     <para>
         下記は<classname>Zend_Tool_Project</classname>とともに出荷されたプロバイダーすべての一覧です。
@@ -10,6 +10,7 @@
 
     <table id="zend.tool.project.project-provider">
         <title>プロジェクトプロバイダーオプション</title>
+
         <tgroup cols="4">
             <thead>
                 <row>
@@ -19,89 +20,56 @@
                     <entry><acronym>CLI</acronym> 使用法</entry>
                 </row>
             </thead>
+
             <tbody>
                 <row>
-                    <entry>
-                        Controller
-                    </entry>
-                    <entry>
-                        Create
-                    </entry>
-                    <entry>
-                        create - [name, indexActionIncluded=true]
-                    </entry>
-                    <entry>
-                        <command>zf create controller foo</command>
-                    </entry>
+                    <entry>Controller</entry>
+                    <entry>Create</entry>
+                    <entry>create - [name, indexActionIncluded=true]</entry>
+                    <entry><command>zf create controller foo</command></entry>
                 </row>
+
                 <row>
-                    <entry>
-                        Action
-                    </entry>
-                    <entry>
-                        Create
-                    </entry>
-                    <entry>
-                        create - [name, controllerName=index, viewIncluded=true]
-                    </entry>
+                    <entry>Action</entry>
+                    <entry>Create</entry>
+                    <entry>create - [name, controllerName=index, viewIncluded=true]</entry>
+
                     <entry>
                         <command>zf create action bar foo</command>
                         (または <command>zf create action --name bar --controlller-name=foo</command>)
                     </entry>
                 </row>
+
                 <row>
-                    <entry>
-                        Controller
-                    </entry>
-                    <entry>
-                        Create
-                    </entry>
-                    <entry>
-                        create - [name, indexActionIncluded=true]
-                    </entry>
-                    <entry>
-                        <command>zf create controller foo</command>
-                    </entry>
+                    <entry>Controller</entry>
+                    <entry>Create</entry>
+                    <entry>create - [name, indexActionIncluded=true]</entry>
+                    <entry><command>zf create controller foo</command></entry>
                 </row>
+
                 <row>
-                    <entry>
-                        Profile
-                    </entry>
-                    <entry>
-                        Show
-                    </entry>
-                    <entry>
-                        show - []
-                    </entry>
-                    <entry>
-                        <command>zf show profile</command>
+                    <entry>Profile</entry><entry>Show
                     </entry>
+                    <entry>show - []</entry>
+                    <entry><command>zf show profile</command></entry>
                 </row>
+
                 <row>
-                    <entry>
-                        View
-                    </entry>
-                    <entry>
-                        Create
-                    </entry>
-                    <entry>
-                        create - [controllerName,actionNameOrSimpleName]
-                    </entry>
+                    <entry>View</entry>
+                    <entry>Create</entry>
+                    <entry>create - [controllerName,actionNameOrSimpleName]</entry>
+
                     <entry>
                         <command>zf create view foo bar</command>
                         (または <command>zf create view -c foo -a bar</command>)
                     </entry>
                 </row>
+
                 <row>
-                    <entry>
-                        Test
-                    </entry>
-                    <entry>
-                        Create / Enable / Disable
-                    </entry>
-                    <entry>
-                        create - [libraryClassName]
-                    </entry>
+                    <entry>Test</entry>
+                    <entry>Create / Enable / Disable</entry>
+                    <entry>create - [libraryClassName]</entry>
+
                     <entry>
                         <command>zf create test My_Foo_Baz</command> /
                         <command>zf disable test</command> /

+ 27 - 23
documentation/manual/ja/module_specs/Zend_Translate-Adapters.xml

@@ -1,8 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 19426 -->
+<!-- EN-Revision: 21661 -->
 <sect1 id="zend.translate.adapter">
-
     <title>Zend_Translate のアダプタ</title>
 
     <para>
@@ -13,6 +12,7 @@
 
     <table id="zend.translate.adapter.table">
         <title><classname>Zend_Translate</classname> のアダプタ</title>
+
         <tgroup cols="3">
             <thead>
                 <row>
@@ -21,52 +21,62 @@
                     <entry>備考</entry>
                 </row>
             </thead>
+
             <tbody>
                 <row>
                     <entry>Array</entry>
                     <entry><acronym>PHP</acronym> の配列</entry>
                     <entry>小さめのページ。簡単に使用できる。プログラマしかさわれない。</entry>
                 </row>
+
                 <row>
                     <entry>Csv</entry>
                     <entry>カンマ区切りファイル (*.csv/*.txt)</entry>
                     <entry>シンプルなテキスト形式。高速。Unicode 文字で問題が発生する可能性がある。</entry>
                 </row>
+
                 <row>
                     <entry>Gettext</entry>
                     <entry>gettext のバイナリファイル (*.mo)</entry>
                     <entry>linux における GNU の標準形式。スレッドセーフ。翻訳用ツールが必要。</entry>
                 </row>
+
                 <row>
                     <entry>Ini</entry>
                     <entry>シンプルな ini ファイル (*.ini)</entry>
                     <entry>シンプルなテキスト形式。高速。Unicode 文字で問題が発生する可能性がある。</entry>
                 </row>
+
                 <row>
                     <entry>Tbx</entry>
                     <entry>termbase 変換ファイル (*.tbx/*.xml)</entry>
                     <entry>アプリケーション間で専門用語を変換するための業界標準。<acronym>XML</acronym> フォーマット。</entry>
                 </row>
+
                 <row>
                     <entry>Tmx</entry>
                     <entry>tmx ファイル (*.tmx/*.xml)</entry>
                     <entry>アプリケーション間での翻訳の業界標準。<acronym>XML</acronym> フォーマット。可読形式。</entry>
                 </row>
+
                 <row>
                     <entry>Qt</entry>
                     <entry>qt 言語ファイル (*.ts)</entry>
                     <entry>クロスプラットフォームなアプリケーションフレームワーク。<acronym>XML</acronym> フォーマット。可読形式。</entry>
                 </row>
+
                 <row>
                     <entry>Xliff</entry>
                     <entry>xliff ファイル (*.xliff/*.xml)</entry>
                     <entry><acronym>TMX</acronym> に似ているが、よりシンプル。<acronym>XML</acronym> フォーマット。可読形式。</entry>
                 </row>
+
                 <row>
                     <entry>XmlTm</entry>
                     <entry>xmltm ファイル (*.xml)</entry>
                     <entry><acronym>XML</acronym> ドキュメントの翻訳メモリの業界標準。<acronym>XML</acronym> フォーマット。可読形式。</entry>
                 </row>
+
                 <row>
                     <entry>その他</entry>
                     <entry>*.sql</entry>
@@ -77,7 +87,6 @@
     </table>
 
     <sect2 id="zend.translate.adapter.decision">
-
         <title>使用するアダプタを決める方法</title>
 
         <para>
@@ -112,7 +121,6 @@
         </note>
 
         <sect3 id="zend.translate.adapter.array">
-
             <title>Zend_Translate_Adapter_Array</title>
 
             <para>
@@ -131,7 +139,6 @@
         </sect3>
 
         <sect3 id="zend.translate.adapter.csv">
-
             <title>Zend_Translate_Adapter_Csv</title>
 
             <para>
@@ -158,7 +165,6 @@
         </sect3>
 
         <sect3 id="zend.translate.adapter.gettext">
-
             <title>Zend_Translate_Adapter_Gettext</title>
 
             <para>
@@ -184,7 +190,6 @@
         </sect3>
 
         <sect3 id="zend.translate.adapter.ini">
-
             <title>Zend_Translate_Adapter_Ini</title>
 
             <para>
@@ -217,7 +222,6 @@
         </sect3>
 
         <sect3 id="zend.translate.adapter.tbx">
-
             <title>Zend_Translate_Adapter_Tbx</title>
 
             <para>
@@ -238,7 +242,6 @@
         </sect3>
 
         <sect3 id="zend.translate.adapter.tmx">
-
             <title>Zend_Translate_Adapter_Tmx</title>
 
             <para>
@@ -256,7 +259,6 @@
         </sect3>
 
         <sect3 id="zend.translate.adapter.qt">
-
             <title>Zend_Translate_Adapter_Qt</title>
 
             <para>
@@ -274,7 +276,6 @@
         </sect3>
 
         <sect3 id="zend.translate.adapter.xliff">
-
             <title>Zend_Translate_Adapter_Xliff</title>
 
             <para>
@@ -293,7 +294,6 @@
         </sect3>
 
         <sect3 id="zend.translate.adapter.xmltm">
-
             <title>Zend_Translate_Adapter_XmlTm</title>
 
             <para>
@@ -313,7 +313,6 @@
     </sect2>
 
     <sect2 id="zend.translate.adapter.selfwritten">
-
         <title>自作のアダプタの組み込み</title>
 
         <para>
@@ -337,10 +336,14 @@
 
         <programlisting language="php"><![CDATA[
 try {
-    $translate = new Zend_Translate('Company_Translate_Adapter_MyFormat',
-                                    '/path/to/translate.xx',
-                                    'en',
-                                    array('myoption' => 'myvalue'));
+    $translate = new Zend_Translate(
+        array(
+            'adapter' => 'Company_Translate_Adapter_MyFormat',
+            'content' => '/path/to/translate.xx',
+            'locale'  => 'en',
+            'myoption' => 'myvalue'
+        )
+    );
 } catch (Exception $e) {
     // ファイルが見つからない、アダプタクラスが存在しない、……
     // などの一般的なエラー
@@ -350,7 +353,6 @@ try {
     </sect2>
 
     <sect2 id="zend.translate.adapter.caching">
-
         <title>全アダプタの高速化</title>
 
         <para>
@@ -378,9 +380,13 @@ $cache = Zend_Cache::factory('Core',
                              $frontendOptions,
                              $backendOptions);
 Zend_Translate::setCache($cache);
-$translate = new Zend_Translate('gettext',
-                                '/path/to/translate.mo',
-                                'en');
+$translate = new Zend_Translate(
+    array(
+        'adapter' => 'gettext',
+        'content' => '/path/to/translate.mo',
+        'locale'  => 'en'
+    )
+);
 ]]></programlisting>
 
         <note>
@@ -393,9 +399,7 @@ $translate = new Zend_Translate('gettext',
                 翻訳ソースのキャッシュは行われません。
             </para>
         </note>
-
     </sect2>
-
 </sect1>
 <!--
 vim:se ts=4 sw=4 et: