Explorar o código

[MANUAL] English:

- manual fixes

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19433 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas %!s(int64=16) %!d(string=hai) anos
pai
achega
27687249f2

+ 56 - 32
documentation/manual/en/module_specs/Zend_View-Helpers-Placeholder.xml

@@ -4,7 +4,7 @@
     <title>Placeholder Helper</title>
 
     <para>
-        The <code>Placeholder</code> view helper is used to persist content
+        The <classname>Placeholder</classname> view helper is used to persist content
         between view scripts and view instances. It also offers some useful
         features such as aggregating content, capturing view script content
         for later use, and adding pre- and post-text to content (and custom
@@ -16,7 +16,7 @@
 
         <para>
             Basic usage of placeholders is to persist view data. Each invocation
-            of the <code>Placeholder</code> helper expects a placeholder name;
+            of the <classname>Placeholder</classname> helper expects a placeholder name;
             the helper then returns a placeholder container object that you can
             either manipulate or simply echo out.
         </para>
@@ -42,38 +42,46 @@
         </para>
 
         <para>
-            The <code>Placeholder</code> view helper uses containers that extend
-            <code>ArrayObject</code>, providing a rich featureset for
+            The <classname>Placeholder</classname> view helper uses containers that extend
+            <classname>ArrayObject</classname>, providing a rich featureset for
             manipulating arrays. In addition, it offers a variety of methods for
             formatting the content stored in the container:
         </para>
 
         <itemizedlist>
-            <listitem><para>
+            <listitem>
+                <para>
                     <methodname>setPrefix($prefix)</methodname> sets text with which to
                     prefix the content. Use <methodname>getPrefix()</methodname> at any time
                     to determine what the current setting is.
-            </para></listitem>
+                </para>
+            </listitem>
 
-            <listitem><para>
+            <listitem>
+                <para>
                     <methodname>setPostfix($prefix)</methodname> sets text with which to
                     append the content. Use <methodname>getPostfix()</methodname> at any time
                     to determine what the current setting is.
-            </para></listitem>
+                </para>
+            </listitem>
 
-            <listitem><para>
+            <listitem>
+                <para>
                     <methodname>setSeparator($prefix)</methodname> sets text with which to
                     separate aggregated content. Use <methodname>getSeparator()</methodname>
                     at any time to determine what the current setting is.
-            </para></listitem>
+                </para>
+            </listitem>
 
-            <listitem><para>
+            <listitem>
+                <para>
                     <methodname>setIndent($prefix)</methodname> can be used to set an
                     indentation value for content. If an integer is passed,
                     that number of spaces will be used; if a string is passed,
                     the string will be used. Use <methodname>getIndent()</methodname>
                     at any time to determine what the current setting is.
-            </para></listitem>
+                </para>
+            </listitem>
         </itemizedlist>
 
         <programlisting language="php"><![CDATA[
@@ -97,8 +105,8 @@ $this->placeholder('foo')->setPrefix("<ul>\n    <li>")
 ]]></programlisting>
 
         <para>
-            Because the <code>Placeholder</code> container objects extend
-            <code>ArrayObject</code>, you can also assign content to a specific
+            Because the <classname>Placeholder</classname> container objects extend
+            <classname>ArrayObject</classname>, you can also assign content to a specific
             key in the container easily, instead of simply pushing it into the
             container. Keys may be accessed either as object properties or as
             array keys.
@@ -120,7 +128,7 @@ echo $foo['bar'];
 
         <para>
             Occasionally you may have content for a placeholder in a view script
-            that is easiest to template; the <code>Placeholder</code> view
+            that is easiest to template; the <classname>Placeholder</classname> view
             helper allows you to capture arbitrary content for later rendering
             using the following <acronym>API</acronym>.
         </para>
@@ -134,7 +142,7 @@ echo $foo['bar'];
 
                 <para>
                     <varname>$type</varname> should be one of the
-                    <code>Placeholder</code> constants <constant>APPEND</constant> or
+                    <classname>Placeholder</classname> constants <constant>APPEND</constant> or
                     <constant>SET</constant>. If <constant>APPEND</constant>, captured content
                     is appended to the list of current content in the
                     placeholder; if <constant>SET</constant>, captured content is used
@@ -157,11 +165,13 @@ echo $foo['bar'];
                 </para>
             </listitem>
 
-            <listitem><para>
+            <listitem>
+                <para>
                     <methodname>captureEnd()</methodname> stops capturing content, and
                     places it in the container object according to how
                     <methodname>captureStart()</methodname> was called.
-            </para></listitem>
+                </para>
+            </listitem>
         </itemizedlist>
 
         <programlisting language="php"><![CDATA[
@@ -209,33 +219,47 @@ foreach ($this->data as $datum): ?>
         </para>
 
         <itemizedlist>
-            <listitem><para>
+            <listitem>
+                <para>
                     <link linkend="zend.view.helpers.initial.doctype">Doctype</link>
-            </para></listitem>
+                </para>
+            </listitem>
 
-            <listitem><para>
+            <listitem>
+                <para>
                     <link linkend="zend.view.helpers.initial.headlink">HeadLink</link>
-            </para></listitem>
+                </para>
+            </listitem>
 
-            <listitem><para>
+            <listitem>
+                <para>
                     <link linkend="zend.view.helpers.initial.headmeta">HeadMeta</link>
-            </para></listitem>
+                </para>
+            </listitem>
 
-            <listitem><para>
+            <listitem>
+                <para>
                     <link linkend="zend.view.helpers.initial.headscript">HeadScript</link>
-            </para></listitem>
+                </para>
+            </listitem>
 
-            <listitem><para>
+            <listitem>
+                <para>
                     <link linkend="zend.view.helpers.initial.headstyle">HeadStyle</link>
-            </para></listitem>
+                </para>
+            </listitem>
 
-            <listitem><para>
+            <listitem>
+                <para>
                     <link linkend="zend.view.helpers.initial.headtitle">HeadTitle</link>
-            </para></listitem>
+                </para>
+            </listitem>
 
-            <listitem><para>
+            <listitem>
+                <para>
                     <link linkend="zend.view.helpers.initial.inlinescript">InlineScript</link>
-            </para></listitem>
+                </para>
+            </listitem>
         </itemizedlist>
     </sect4>
 </sect3>

+ 6 - 24
documentation/manual/en/module_specs/Zend_View-Helpers-Translate.xml

@@ -1,15 +1,14 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
 <sect3 id="zend.view.helpers.initial.translate">
-
     <title>Translate Helper</title>
 
     <para>
         Often web sites are available in several languages. To translate the
         content of a site you should simply use <link
             linkend="zend.translate.introduction">Zend Translate</link> and to
-        integrate <code>Zend Translate</code> within your view you should use
-        the <code>Translate</code> View Helper.
+        integrate <classname>Zend Translate</classname> within your view you should use
+        the <emphasis>Translate</emphasis> View Helper.
     </para>
 
     <para>
@@ -17,7 +16,7 @@
         Adapter. Of course you can also use any instance of
         <classname>Zend_Translate</classname> and also any subclasses of
         <classname>Zend_Translate_Adapter</classname>. There are several ways to initiate
-        the <code>Translate</code> View Helper:
+        the <emphasis>Translate</emphasis> View Helper:
     </para>
 
     <itemizedlist>
@@ -27,11 +26,13 @@
                 <classname>Zend_Registry</classname>
             </para>
         </listitem>
+
         <listitem>
             <para>
                 Afterwards, through the fluent interface
             </para>
         </listitem>
+
         <listitem>
             <para>
                 Directly, through initiating the class
@@ -56,7 +57,6 @@
     </note>
 
     <example id="zend.view.helpers.initial.translate.registered">
-
         <title>Registered instance</title>
 
         <para>
@@ -75,7 +75,6 @@ Zend_Registry::set('Zend_Translate', $adapter);
 echo $this->translate('simple');
 // this returns 'einfach'
 ]]></programlisting>
-
     </example>
 
     <para>
@@ -84,7 +83,6 @@ echo $this->translate('simple');
     </para>
 
     <example id="zend.view.helpers.initial.translate.afterwards">
-
         <title>Within the view</title>
 
         <para>
@@ -100,7 +98,6 @@ $adapter = new Zend_Translate('array', array('simple' => 'einfach'), 'de');
 $this->translate()->setTranslator($adapter)->translate('simple');
 // this returns 'einfach'
 ]]></programlisting>
-
     </example>
 
     <para>
@@ -109,7 +106,6 @@ $this->translate()->setTranslator($adapter)->translate('simple');
     </para>
 
     <example id="zend.view.helpers.initial.translate.directly">
-
         <title>Direct usage</title>
 
         <programlisting language="php"><![CDATA[
@@ -125,7 +121,6 @@ print $translate->translate('simple'); // this returns 'einfach'
             You would use this way if you are not working with
             <classname>Zend_View</classname> and need to create translated output.
         </para>
-
     </example>
 
     <para>
@@ -137,7 +132,6 @@ print $translate->translate('simple'); // this returns 'einfach'
     </para>
 
     <example id="zend.view.helpers.initial.translate.parameter">
-
         <title>Single parameter</title>
 
         <para>
@@ -150,7 +144,6 @@ $date = "Monday";
 $this->translate("Today is %1\$s", $date);
 // could return 'Heute ist Monday'
 ]]></programlisting>
-
     </example>
 
     <note>
@@ -161,7 +154,6 @@ $this->translate("Today is %1\$s", $date);
     </note>
 
     <example id="zend.view.helpers.initial.translate.parameterlist">
-
         <title>List of parameters</title>
 
         <para>
@@ -179,11 +171,9 @@ $this->translate("Today is %1\$s in %2\$s. Actual time: %3\$s",
                  $time);
 // Could return 'Heute ist Monday in April. Aktuelle Zeit: 11:20:55'
 ]]></programlisting>
-
     </example>
 
     <example id="zend.view.helpers.initial.translate.parameterarray">
-
         <title>Array of parameters</title>
 
         <para>
@@ -196,7 +186,6 @@ $date = array("Monday", "April", "11:20:55");
 $this->translate("Today is %1\$s in %2\$s. Actual time: %3\$s", $date);
 // Could return 'Heute ist Monday in April. Aktuelle Zeit: 11:20:55'
 ]]></programlisting>
-
     </example>
 
     <para>
@@ -208,7 +197,6 @@ $this->translate("Today is %1\$s in %2\$s. Actual time: %3\$s", $date);
     </para>
 
     <example id="zend.view.helpers.initial.translate.dynamic">
-
         <title>Change locale dynamically</title>
 
         <programlisting language="php"><![CDATA[
@@ -216,7 +204,6 @@ $this->translate("Today is %1\$s in %2\$s. Actual time: %3\$s", $date);
 $date = array("Monday", "April", "11:20:55");
 $this->translate("Today is %1\$s in %2\$s. Actual time: %3\$s", $date, 'it');
 ]]></programlisting>
-
     </example>
 
     <para>
@@ -228,7 +215,6 @@ $this->translate("Today is %1\$s in %2\$s. Actual time: %3\$s", $date, 'it');
     </para>
 
     <example id="zend.view.helpers.initial.translate.static">
-
         <title>Change locale statically</title>
 
         <programlisting language="php"><![CDATA[
@@ -237,11 +223,10 @@ $date = array("Monday", "April", "11:20:55");
 $this->translate()->setLocale('it');
 $this->translate("Today is %1\$s in %2\$s. Actual time: %3\$s", $date);
 ]]></programlisting>
-
     </example>
 
     <para>
-        The above example sets <code>'it'</code> as the new default locale which
+        The above example sets <emphasis>'it'</emphasis> as the new default locale which
         will be used for all further translations.
     </para>
 
@@ -251,7 +236,6 @@ $this->translate("Today is %1\$s in %2\$s. Actual time: %3\$s", $date);
     </para>
 
     <example id="zend.view.helpers.initial.translate.getlocale">
-
         <title>Get the currently set locale</title>
 
         <programlisting language="php"><![CDATA[
@@ -267,9 +251,7 @@ $this->translate("Today is %1\$s in %2\$s. Actual time: %3\$s", $date);
 // returns 'it' as new set default locale
 $this->translate()->getLocale();
 ]]></programlisting>
-
     </example>
-
 </sect3>
 <!--
 vim:se ts=4 sw=4 et: