Jelajahi Sumber

[MANUAL] English:

- several manual fixes

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@22767 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas 15 tahun lalu
induk
melakukan
f0819d7769

+ 18 - 18
documentation/manual/en/module_specs/Zend_Translate-SourceCreation.xml

@@ -216,8 +216,8 @@ $translate = new Zend_Translate(
         </para>
 
         <para>
-            If you want to have only specified languages from the source translated
-            you can set the option '<code>defined_language</code>' to <constant>TRUE</constant>.
+            If you want to have only specified languages from the source translated you can
+            set the option <property>defined_language</property> to <constant>TRUE</constant>.
             With this option you can add the wished languages explicitly with
             <methodname>addLanguage()</methodname>. The default value for this option is to add all
             languages.
@@ -283,26 +283,26 @@ $translate->addTranslation(
 
         <para>
             There are three different options for the CSV adapter.
-            You can set '<code>delimiter</code>', '<code>limit</code>' and
-            '<code>enclosure</code>'.
+            You can set <property>delimiter</property>, <property>limit</property> and
+            <property>enclosure</property>.
         </para>
 
         <para>
-            The default delimiter for CSV string is '<code>;</code>', but
-            with the option '<code>delimiter</code>'
+            The default delimiter for CSV string is '<emphasis>;</emphasis>', but
+            with the option <property>delimiter</property>
             you can decide to use another one.
         </para>
 
         <para>
-            The default limit for a line within a CSV file is '<code>0</code>'. This means
+            The default limit for a line within a CSV file is '<emphasis>0</emphasis>'. This means
             that the end of a CSV line is searched automatically. If you set
-            '<code>limit</code>' to any value, then the CSV file will be
+            <property>limit</property> to any value, then the CSV file will be
             read faster, but any line exceeding this limit will be truncated.
         </para>
 
         <para>
-            The default enclosure to use for CSV files is '<code>"</code>'. You can
-            set a different one using the option '<code>enclosure</code>'.
+            The default enclosure to use for CSV files is '<emphasis>"</emphasis>'. You can
+            set a different one using the option <property>enclosure</property>.
         </para>
 
         <example id="zend.translate.sourcecreation.csv.example2">
@@ -383,14 +383,14 @@ $translate->addTranslation(
         <para>
             <acronym>INI</acronym> files have several restrictions. If a value in the
             <acronym>INI</acronym> file contains any non-alphanumeric characters it needs to be
-            enclosed in double-quotes (<code>"</code>). There are also reserved words which must not
-            be used as keys for <acronym>INI</acronym> files. These include:
-            <constant>NULL</constant>, <code>yes</code>, <code>no</code>, <constant>TRUE</constant>,
-            and <constant>FALSE</constant>. Values <constant>NULL</constant>, <code>no</code> and
-            <constant>FALSE</constant> results in <code>""</code>, <code>yes</code> and
-            <constant>TRUE</constant> results in <code>1</code>. Characters
-            <code>{}|&amp;~![()"</code> must not be used anywhere in the key and have a special
-            meaning in the value. Do not use them as it will produce unexpected behaviour.
+            enclosed in double-quotes (<emphasis>"</emphasis>). There are also reserved words which
+            must not be used as keys for <acronym>INI</acronym> files. These include:
+            <constant>NULL</constant>, yes, no, <constant>TRUE</constant>, and
+            <constant>FALSE</constant>. Values <constant>NULL</constant>, <emphasis>no</emphasis>
+            and <constant>FALSE</constant> results in <emphasis>""</emphasis>,
+            <emphasis>yes</emphasis> and <constant>TRUE</constant> results in '1'. Characters
+            <emphasis>{}|&amp;~![()"</emphasis> must not be used anywhere in the key and have a
+            special meaning in the value. Do not use them as it will produce unexpected behaviour.
         </para>
     </sect2>
 </sect1>

+ 6 - 6
documentation/manual/en/module_specs/Zend_Validate-Db.xml

@@ -129,7 +129,7 @@ if ($validator->isValid($username)) {
         </para>
 
         <para>
-            When providing an array for the exclude clause, the <code>!=</code>
+            When providing an array for the exclude clause, the <emphasis>!=</emphasis>
             operator is used, so you can check the rest of a table for a value
             before altering a record (for example on a user profile form)
         </para>
@@ -161,13 +161,13 @@ if ($validator->isValid($username)) {
 
         <para>
             The above example will check the table to ensure no records other
-            than the one where <code>id = $user_id</code> contains the value
+            than the one where <command>id = $user_id</command> contains the value
             $username.
         </para>
 
         <para>
             You can also provide a string to the exclude clause so you can use
-            an operator other than <code>!=</code>. This can be useful for
+            an operator other than <emphasis>!=</emphasis>. This can be useful for
             testing against composite keys.
         </para>
 
@@ -194,8 +194,8 @@ if ($validator->isValid($username)) {
 ]]></programlisting>
 
         <para>
-            The above example will check the <code>posts_categories</code> table
-            to ensure that a record with the <code>post_id</code> has a value
+            The above example will check the 'posts_categories' table
+            to ensure that a record with the 'post_id' has a value
             matching <varname>$category_id</varname>
         </para>
     </sect3>
@@ -226,7 +226,7 @@ $validator = new Zend_Validate_Db_RecordExists(
         <para>
             You can specify a schema within your database for adapters such as
             PostgreSQL and DB/2 by simply supplying an array with
-            <code>table</code> and <code>schema</code> keys. As in the example
+            <property>table</property> and <property>schema</property> keys. As in the example
             below:
         </para>
 

+ 9 - 8
documentation/manual/en/module_specs/Zend_Validate-EmailAddress.xml

@@ -30,7 +30,7 @@ if ($validator->isValid($email)) {
 
         <para>
             This will match the email address <varname>$email</varname> and on failure populate
-            <code>$validator->getMessages()</code> with useful error messages.
+            <methodname>getMessages()</methodname> with useful error messages.
         </para>
     </sect3>
 
@@ -104,9 +104,10 @@ $validator->setOptions(array('domain' => false));
 
         <para>
             <classname>Zend_Validate_EmailAddress</classname> will match any valid email address
-            according to RFC2822. For example, valid emails include <code>bob@domain.com</code>,
-            <code>bob+jones@domain.us</code>, <code>"bob@jones"@domain.com</code> and
-            <code>"bob jones"@domain.com</code>
+            according to RFC2822. For example, valid emails include
+            <emphasis>bob@domain.com</emphasis>, <emphasis>bob+jones@domain.us</emphasis>,
+            <emphasis>"bob@jones"@domain.com</emphasis> and
+            <emphasis>"bob jones"@domain.com</emphasis>.
         </para>
 
         <para>
@@ -139,8 +140,8 @@ $validator->setOptions(array('domain' => FALSE));
             The hostname part of an email address is validated against <link
                 linkend="zend.validate.set.hostname">
                 <classname>Zend_Validate_Hostname</classname></link>. By default
-            only DNS hostnames of the form <code>domain.com</code> are accepted, though if you wish
-            you can accept IP addresses and Local hostnames too.
+            only DNS hostnames of the form <filename>domain.com</filename> are accepted, though if
+            you wish you can accept IP addresses and Local hostnames too.
         </para>
 
         <para>
@@ -202,8 +203,8 @@ $validator = new Zend_Validate_EmailAddress(
 
         <para>
             Alternatively you can either pass <constant>TRUE</constant> or
-            <constant>FALSE</constant> to <code>$validator->setValidateMx()</code> to enable or
-            disable MX validation.
+            <constant>FALSE</constant> to <methodname>setValidateMx()</methodname> to enable
+            or disable MX validation.
         </para>
 
         <para>