Parcourir la source

[DOCUMENTATION] English:

- manual fixes

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@17597 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas il y a 16 ans
Parent
commit
efc8e1dd89

+ 1 - 1
documentation/manual/en/module_specs/Zend_Auth_Adapter_Http.xml

@@ -50,7 +50,7 @@
         </itemizedlist>
         </itemizedlist>
 
 
         <para>
         <para>
-            There are a few notable features of RFC-2617 that are not
+            There are a few notable features of <acronym>RFC-2617</acronym> that are not
             implemented yet:
             implemented yet:
         </para>
         </para>
 
 

+ 4 - 4
documentation/manual/en/module_specs/Zend_Controller-ActionHelpers-ContextSwitch.xml

@@ -258,8 +258,8 @@ $this->_helper->contextSwitch()->setAutoJsonSerialization(false);
             </para></listitem>
             </para></listitem>
 
 
             <listitem><para>
             <listitem><para>
-                <methodname>hasContext($context)</methodname>: returns <constant>TRUE</constant> if the context
-                exists, <constant>FALSE</constant> otherwise.
+                <methodname>hasContext($context)</methodname>: returns <constant>TRUE</constant> if
+                the context exists, <constant>FALSE</constant> otherwise.
             </para></listitem>
             </para></listitem>
 
 
             <listitem><para> <methodname>getContext($context)</methodname>: retrieve a
             <listitem><para> <methodname>getContext($context)</methodname>: retrieve a
@@ -274,8 +274,8 @@ $this->_helper->contextSwitch()->setAutoJsonSerialization(false);
 
 
             <listitem><para>
             <listitem><para>
                 <methodname>removeContext($context)</methodname>: remove a single context by
                 <methodname>removeContext($context)</methodname>: remove a single context by
-                name. Returns <constant>TRUE</constant> if successful, <constant>FALSE</constant> if the context was not
-                found.
+                name. Returns <constant>TRUE</constant> if successful, <constant>FALSE</constant>
+                if the context was not found.
             </para></listitem>
             </para></listitem>
 
 
             <listitem><para>
             <listitem><para>

+ 5 - 5
documentation/manual/en/module_specs/Zend_Controller-ActionHelpers-ViewRenderer.xml

@@ -544,11 +544,11 @@ $viewRenderer =
                 </para>
                 </para>
 
 
                 <para>
                 <para>
-                    Word delimiters occurring in module, controller, or action
-                    names will be replaced with dashes ('-'). Thus, if you have
-                    the controller name 'foo.bar' and the action 'baz:bat',
-                    using the default path specification will result in a view
-                    script path of '<filename>foo-bar/baz-bat.phtml</filename>'.
+                    Word delimiters occurring in module, controller, or action names will be
+                    replaced with dashes ('-'). Thus, if you have the controller name
+                    '<command>foo.bar</command>' and the action '<command>baz:bat</command>', using
+                    the default path specification will result in a view script path of
+                    '<filename>foo-bar/baz-bat.phtml</filename>'.
                 </para>
                 </para>
 
 
                 <note>
                 <note>

+ 1 - 1
documentation/manual/en/module_specs/Zend_Controller-Request.xml

@@ -215,7 +215,7 @@ $front->setRequest($request);
                 then be stripped from the beginning of the path before
                 then be stripped from the beginning of the path before
                 calculating any route matches. This frees one from the necessity
                 calculating any route matches. This frees one from the necessity
                 of prepending it to any of your routes. A route of
                 of prepending it to any of your routes. A route of
-                <filename>'user/:username'</filename> will match <acronym>URI</acronym>s like
+                <command>'user/:username'</command> will match <acronym>URI</acronym>s like
                 <filename>http://localhost/projects/myapp/user/martel</filename> and
                 <filename>http://localhost/projects/myapp/user/martel</filename> and
                 <filename>http://example.com/user/martel</filename>.
                 <filename>http://example.com/user/martel</filename>.
             </para>
             </para>

+ 55 - 56
documentation/manual/en/module_specs/Zend_Currency-Migrating.xml

@@ -5,8 +5,8 @@
     <title>Migrating from Previous Versions</title>
     <title>Migrating from Previous Versions</title>
 
 
     <para>
     <para>
-        The <acronym>API</acronym> of <classname>Zend_Currency</classname> has changed in the past to enhance
-        usability. If you started using <classname>Zend_Currency</classname> with a
+        The <acronym>API</acronym> of <classname>Zend_Currency</classname> has changed in the past
+        to enhance usability. If you started using <classname>Zend_Currency</classname> with a
         version which is mentioned in this chapter follow the guidelines below
         version which is mentioned in this chapter follow the guidelines below
         to migrate your scripts to the new <acronym>API</acronym>.
         to migrate your scripts to the new <acronym>API</acronym>.
     </para>
     </para>
@@ -30,62 +30,61 @@ $currency = new Zend_Currency($currency, $locale);
             The <methodname>setFormat()</methodname> method takes now an array of options. These
             The <methodname>setFormat()</methodname> method takes now an array of options. These
             options are set permanently and override all previously set values. Also a new option
             options are set permanently and override all previously set values. Also a new option
             'precision' has been added. The following options have been refactored:
             'precision' has been added. The following options have been refactored:
-
-            <itemizedlist mark='opencircle'>
-                <listitem>
-                    <para>
-                        <emphasis>position</emphasis>:
-                        Replacement for the old 'rules' parameter.
-                    </para>
-                </listitem>
-                <listitem>
-                    <para>
-                        <emphasis>script</emphasis>:
-                        Replacement for the old 'script' parameter.
-                    </para>
-                </listitem>
-                <listitem>
-                    <para>
-                        <emphasis>format</emphasis>:
-                        Replacement for the old 'locale' parameter which does not
-                        set new currencies but only the number format.
-                    </para>
-                </listitem>
-                <listitem>
-                    <para>
-                        <emphasis>display</emphasis>:
-                        Replacement for the old 'rules' parameter.
-                    </para>
-                </listitem>
-                <listitem>
-                    <para>
-                        <emphasis>precision</emphasis>:
-                        New parameter.
-                    </para>
-                </listitem>
-                <listitem>
-                    <para>
-                        <emphasis>name</emphasis>:
-                        Replacement for the ole 'rules' parameter. Sets the full
-                        currencies name.
-                    </para>
-                </listitem>
-                <listitem>
-                    <para>
-                        <emphasis>currency</emphasis>:
-                        New parameter.
-                    </para>
-                </listitem>
-                <listitem>
-                    <para>
-                        <emphasis>symbol</emphasis>:
-                        New parameter.
-                    </para>
-                </listitem>
-            </itemizedlist>
-
         </para>
         </para>
 
 
+        <itemizedlist mark='opencircle'>
+            <listitem>
+                <para>
+                    <emphasis>position</emphasis>:
+                    Replacement for the old 'rules' parameter.
+                </para>
+            </listitem>
+            <listitem>
+                <para>
+                    <emphasis>script</emphasis>:
+                    Replacement for the old 'script' parameter.
+                </para>
+            </listitem>
+            <listitem>
+                <para>
+                    <emphasis>format</emphasis>:
+                    Replacement for the old 'locale' parameter which does not
+                    set new currencies but only the number format.
+                </para>
+            </listitem>
+            <listitem>
+                <para>
+                    <emphasis>display</emphasis>:
+                    Replacement for the old 'rules' parameter.
+                </para>
+            </listitem>
+            <listitem>
+                <para>
+                    <emphasis>precision</emphasis>:
+                    New parameter.
+                </para>
+            </listitem>
+            <listitem>
+                <para>
+                    <emphasis>name</emphasis>:
+                    Replacement for the ole 'rules' parameter. Sets the full
+                    currencies name.
+                </para>
+            </listitem>
+            <listitem>
+                <para>
+                    <emphasis>currency</emphasis>:
+                    New parameter.
+                </para>
+            </listitem>
+            <listitem>
+                <para>
+                    <emphasis>symbol</emphasis>:
+                    New parameter.
+                </para>
+            </listitem>
+        </itemizedlist>
+
         <programlisting language="php"><![CDATA[
         <programlisting language="php"><![CDATA[
 $currency->setFormat(array $options);
 $currency->setFormat(array $options);
 ]]></programlisting>
 ]]></programlisting>

+ 24 - 23
documentation/manual/en/module_specs/Zend_Currency-Usage.xml

@@ -84,11 +84,11 @@ $currency = new Zend_Currency();
             </para>
             </para>
             <note>
             <note>
                 <para>
                 <para>
-                    Note that <classname>Zend_Currency</classname> only accepts locales which include a region. This means
-                    that all locales that only include a language will result in an exception. For
-                    example the locale <emphasis>en</emphasis> will cause an exception to be thrown
-                    whereas the locale <emphasis>en_US</emphasis> will return
-                    <emphasis>USD</emphasis> as currency.
+                    Note that <classname>Zend_Currency</classname> only accepts locales which
+                    include a region. This means that all locales that only include a language will
+                    result in an exception. For example the locale <emphasis>en</emphasis> will
+                    cause an exception to be thrown whereas the locale <emphasis>en_US</emphasis>
+                    will return <acronym>USD</acronym> as currency.
                 </para>
                 </para>
             </note>
             </note>
         </listitem>
         </listitem>
@@ -128,7 +128,7 @@ $currency = new Zend_Currency('en_US', 'EUR');
             currently be in use, with one or more ancient currencies. If the
             currently be in use, with one or more ancient currencies. If the
             '<emphasis>currency</emphasis>' parameter is suppressed the contemporary currency will
             '<emphasis>currency</emphasis>' parameter is suppressed the contemporary currency will
             be used. The region '<emphasis>de</emphasis>' for example knows the currencies
             be used. The region '<emphasis>de</emphasis>' for example knows the currencies
-            '<emphasis>EUR</emphasis>' and '<emphasis>DEM</emphasis>'... '<emphasis>EUR</emphasis>'
+            '<acronym>EUR</acronym>' and '<acronym>DEM</acronym>'... '<acronym>EUR</acronym>'
             is the contemporary currency and will be used if the currency parameter is omitted.
             is the contemporary currency and will be used if the currency parameter is omitted.
         </para>
         </para>
     </note>
     </note>
@@ -139,7 +139,7 @@ $currency = new Zend_Currency('en_US', 'EUR');
 
 
         <para>
         <para>
             To get a numeric value converted to an output string formatted for the currency at hand,
             To get a numeric value converted to an output string formatted for the currency at hand,
-            use the method <emphasis>toCurrency()</emphasis>. It takes the value which should be
+            use the method <methodname>toCurrency()</methodname>. It takes the value which should be
             converted. The value itself can be any normalized number.
             converted. The value itself can be any normalized number.
         </para>
         </para>
 
 
@@ -237,10 +237,9 @@ echo $currency->toCurrency(1000, array('script' => 'Arab'));
         </itemizedlist>
         </itemizedlist>
 
 
         <para>
         <para>
-            So if you need to change the format, you should the
-            <methodname>setFormat()</methodname> method. It takes an array which should include every
-            option you want to change. The <varname>$options</varname> array supports the following
-            settings:
+            So if you need to change the format, you should the <methodname>setFormat()</methodname>
+            method. It takes an array which should include every option you want to change. The
+            <varname>$options</varname> array supports the following settings:
         </para>
         </para>
 
 
         <itemizedlist mark='opencircle'>
         <itemizedlist mark='opencircle'>
@@ -415,7 +414,7 @@ echo $currency->toCurrency(1000);
         <itemizedlist mark='opencircle'>
         <itemizedlist mark='opencircle'>
             <listitem>
             <listitem>
                 <para>
                 <para>
-                    <emphasis>getSymbol()</emphasis>:
+                    <emphasis><methodname>getSymbol()</methodname></emphasis>:
                 </para>
                 </para>
                 <para>
                 <para>
                     Returns the known symbol of the set currency or a given currency. For example
                     Returns the known symbol of the set currency or a given currency. For example
@@ -425,17 +424,17 @@ echo $currency->toCurrency(1000);
             </listitem>
             </listitem>
             <listitem>
             <listitem>
                 <para>
                 <para>
-                    <emphasis>getShortName()</emphasis>:
+                    <emphasis><methodname>getShortName()</methodname></emphasis>:
                 </para>
                 </para>
                 <para>
                 <para>
                     Returns the abbreviation of the set currency or a given currency. For example
                     Returns the abbreviation of the set currency or a given currency. For example
-                    <emphasis>USD</emphasis> for the US Dollar within the locale
+                    <acronym>USD</acronym> for the US Dollar within the locale
                     '<emphasis>en_US</emphasis>.
                     '<emphasis>en_US</emphasis>.
                 </para>
                 </para>
             </listitem>
             </listitem>
             <listitem>
             <listitem>
                 <para>
                 <para>
-                    <emphasis>getName()</emphasis>:
+                    <emphasis><methodname>getName()</methodname></emphasis>:
                 </para>
                 </para>
                 <para>
                 <para>
                     Returns the full name of the set currency of a given currency. For example
                     Returns the full name of the set currency of a given currency. For example
@@ -445,7 +444,7 @@ echo $currency->toCurrency(1000);
             </listitem>
             </listitem>
             <listitem>
             <listitem>
                 <para>
                 <para>
-                    <emphasis>getRegionList()</emphasis>:
+                    <emphasis><methodname>getRegionList()</methodname></emphasis>:
                 </para>
                 </para>
                 <para>
                 <para>
                     Returns a list of regions where the set currency or a given one is known to be
                     Returns a list of regions where the set currency or a given one is known to be
@@ -455,7 +454,7 @@ echo $currency->toCurrency(1000);
             </listitem>
             </listitem>
             <listitem>
             <listitem>
                 <para>
                 <para>
-                    <emphasis>getCurrencyList()</emphasis>:
+                    <emphasis><methodname>getCurrencyList()</methodname></emphasis>:
                 </para>
                 </para>
                 <para>
                 <para>
                     Returns a list of currencies which are used in the given region.
                     Returns a list of currencies which are used in the given region.
@@ -468,9 +467,10 @@ echo $currency->toCurrency(1000);
             <methodname>getShortName()</methodname> and <methodname>getName()</methodname> accept
             <methodname>getShortName()</methodname> and <methodname>getName()</methodname> accept
             two optional parameters. If no parameter is given the
             two optional parameters. If no parameter is given the
             expected data will be returned from the set currency. The first parameter takes the
             expected data will be returned from the set currency. The first parameter takes the
-            shortname of a currency. Short names are always three lettered, for example EUR for euro
-            or USD for US Dollar. The second parameter defines from which locale the data should be
-            read. If no locale is given, the set locale is used.
+            shortname of a currency. Short names are always three lettered, for example
+            <acronym>EUR</acronym> for euro or <acronym>USD</acronym> for US Dollar. The second
+            parameter defines from which locale the data should be read. If no locale is given, the
+            set locale is used.
         </para>
         </para>
 
 
         <example id="zend.currency.usage.informational.example">
         <example id="zend.currency.usage.informational.example">
@@ -540,9 +540,10 @@ print $currency->toCurrency(1000);
             <classname>Zend_Cache</classname>. The static method
             <classname>Zend_Cache</classname>. The static method
             <methodname>Zend_Currency::setCache($cache)</methodname> accepts one option: a
             <methodname>Zend_Currency::setCache($cache)</methodname> accepts one option: a
             <classname>Zend_Cache</classname> adapter. If the cache adapter is set, the localization
             <classname>Zend_Cache</classname> adapter. If the cache adapter is set, the localization
-            data that <classname>Zend_Currency</classname> uses are cached. There are some static methods for manipulating
-            the cache: <methodname>getCache()</methodname>, <methodname>hasCache()</methodname>,
-            <methodname>clearCache()</methodname> and <methodname>removeCache()</methodname>.
+            data that <classname>Zend_Currency</classname> uses are cached. There are some static
+            methods for manipulating the cache: <methodname>getCache()</methodname>,
+            <methodname>hasCache()</methodname>, <methodname>clearCache()</methodname> and
+            <methodname>removeCache()</methodname>.
         </para>
         </para>
 
 
         <example id="zend.currency.usage.cache.example">
         <example id="zend.currency.usage.cache.example">

+ 3 - 2
documentation/manual/en/module_specs/Zend_Date-Basic.xml

@@ -28,8 +28,9 @@
 
 
         <para>
         <para>
             Without any arguments, constructing an instance returns an object in the default locale
             Without any arguments, constructing an instance returns an object in the default locale
-            with the current, local date using <acronym>PHP</acronym>'s <methodname>time()</methodname> function to
-            obtain the <ulink url="http://en.wikipedia.org/wiki/Unix_Time">UNIX timestamp</ulink>
+            with the current, local date using <acronym>PHP</acronym>'s
+            <methodname>time()</methodname> function to obtain the <ulink
+                url="http://en.wikipedia.org/wiki/Unix_Time">UNIX timestamp</ulink>
             for the object. Make sure your <acronym>PHP</acronym> environment has the correct
             for the object. Make sure your <acronym>PHP</acronym> environment has the correct
             <link linkend="zend.date.setdefaulttimezone">default timezone</link>
             <link linkend="zend.date.setdefaulttimezone">default timezone</link>
             .
             .