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

[DOCUMENTATION] Japanese sync 17908

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18071 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp 16 лет назад
Родитель
Сommit
446f54e69e
1 измененных файлов с 89 добавлено и 1 удалено
  1. 89 1
      documentation/manual/ja/module_specs/Zend_Validate-Migration.xml

+ 89 - 1
documentation/manual/ja/module_specs/Zend_Validate-Migration.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 17471 -->
+<!-- EN-Revision: 17908 -->
 <sect1 id="zend.validate.migration">
 
     <title>以前のバージョンからの移行</title>
@@ -58,5 +58,93 @@ My_Validator extends Zend_Validate_Abstract
 }
 ]]></programlisting>
         </sect3>
+
+        <sect3 id="zend.validate.migration.fromoneninetooneten.datevalidator">
+            <!-- TODO: to be translated -->
+            <title>Simplification in date validator</title>
+
+            <para>
+                Before Zend Framework 1.10 2 identical messages were thrown within the date
+                validator. These were <constant>NOT_YYYY_MM_DD</constant> and
+                <constant>FALSEFORMAT</constant>. As of Zend Framework 1.10 only the
+                <constant>FALSEFORMAT</constant> message will be returned when the given date
+                does not match the set format.
+            </para>
+        </sect3>
+
+        <sect3 id="zend.validate.migration.fromoneninetooneten.barcodevalidator">
+            <title>Fixes in Alpha, Alnum and Barcode validator</title>
+
+            <para>
+                Before Zend Framework 1.10 the messages within the 2 barcode adapters, the Alpha
+                and the Alnum validator were identical. This introduced problems when using custom
+                messages, translations or multiple instances of these validators.
+            </para>
+
+            <para>
+                As with Zend Framework 1.10 the values of the constants were changed to
+                be unique. When you used the constants as proposed in the manual there is
+                no change for you. But when you used the content of the constants in your code
+                then you will have to change them. The following table shows you the changed values:
+            </para>
+
+            <table id="zend.validate.migration.fromoneninetooneten.barcodevalidator.table">
+                <title>Available Validation Messages</title>
+                <tgroup cols="3">
+                    <thead>
+                        <row>
+                            <entry>Validator</entry>
+                            <entry>Constant</entry>
+                            <entry>Value</entry>
+                        </row>
+                    </thead>
+
+                    <tbody>
+                        <row>
+                            <entry>Alnum</entry>
+                            <entry><constant>STRING_EMPTY</constant></entry>
+                            <entry>alnumStringEmpty</entry>
+                        </row>
+
+                        <row>
+                            <entry>Alpha</entry>
+                            <entry><constant>STRING_EMPTY</constant></entry>
+                            <entry>alphaStringEmpty</entry>
+                        </row>
+
+                        <row>
+                            <entry>Barcode_Ean13</entry>
+                            <entry><constant>INVALID</constant></entry>
+                            <entry>ean13Invalid</entry>
+                        </row>
+
+                        <row>
+                            <entry>Barcode_Ean13</entry>
+                            <entry><constant>INVALID_LENGTH</constant></entry>
+                            <entry>ean13InvalidLength</entry>
+                        </row>
+
+                        <row>
+                            <entry>Barcode_UpcA</entry>
+                            <entry><constant>INVALID</constant></entry>
+                            <entry>upcaInvalid</entry>
+                        </row>
+
+                        <row>
+                            <entry>Barcode_UpcA</entry>
+                            <entry><constant>INVALID_LENGTH</constant></entry>
+                            <entry>upcaInvalidLength</entry>
+                        </row>
+
+                        <row>
+                            <entry>Digits</entry>
+                            <entry><constant>STRING_EMPTY</constant></entry>
+                            <entry>digitsStringEmpty</entry>
+                        </row>
+                    </tbody>
+                </tgroup>
+            </table>
+
+        </sect3>
     </sect2>
 </sect1>