Explorar el Código

[DOCUMENTATION] Brazilian Portuguese:
- Some translations


git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24447 44c647ce-9c0f-0410-b52a-842ac1e357ba

mauriciofauth hace 14 años
padre
commit
a08ab43ca8

+ 36 - 37
documentation/manual/pt-br/module_specs/Zend_View-Introduction.xml

@@ -217,16 +217,16 @@ php_value "short_open_tag" "on"
 ]]></programlisting>
 
                 <para>
-                    This will only be possible if you are allowed to create and
-                    utilize <filename>.htaccess</filename> files. This directive can
-                    also be added to your <filename>httpd.conf</filename> file.
+                    Isso só será possível se você tiver permissão para criar e utilizar arquivos
+                    <filename>.htaccess</filename>. Esta diretiva também podem ser adicionada ao seu
+                    arquivo <filename>httpd.conf</filename>.
                 </para>
             </listitem>
 
             <listitem>
                 <para>
-                    Enable an optional stream wrapper to convert short tags to
-                    long tags on the fly:
+                    Habilitar um stream wrapper opcional para converter tags curtas para tags longas
+                    em tempo real:
                 </para>
 
                 <programlisting language="php"><![CDATA[
@@ -234,92 +234,91 @@ $view->setUseStreamWrapper(true);
 ]]></programlisting>
 
                 <para>
-                    This registers <classname>Zend_View_Stream</classname> as a stream
-                    wrapper for view scripts, and will ensure that your code
-                    continues to work as if short tags were enabled.
+                    Isso registra <classname>Zend_View_Stream</classname> como um stream wrapper
+                    para scripts de visualização, e garantirá que seu código continue trabalhando
+                    como se as tags curtas estivessem habilitadas.
                 </para>
             </listitem>
         </itemizedlist>
 
         <warning>
-            <title>View Stream Wrapper Degrades Performance</title>
+            <title>Stream Wrapper Prejudica o Desempenho</title>
 
             <para>
-                Usage of the stream wrapper <emphasis>will</emphasis> degrade
-                performance of your application, though actual benchmarks are
-                unavailable to quantify the amount of degradation. We recommend
-                that you either enable short tags, convert your scripts to use
-                full tags, or have a good partial and/or full page content
-                caching strategy in place.
+                O uso do stream wrapper <emphasis>irá</emphasis> prejudicar o desempenho de sua
+                aplicação, embora benchmarks atuais estejam indisponíveis para quantificar o
+                montante da degradação. Recomendamos que você ative as tags curtas, converta seus
+                scripts para usar tags completas, ou tenha uma boa estratégia de cache completo e/ou
+                parcial do conteúdo da página no lugar.
             </para>
         </warning>
     </sect2>
 
     <sect2 id="zend.view.introduction.accessors">
-        <title>Utility Accessors</title>
+        <title>Acessadores Utilitários</title>
 
         <para>
-            Typically, you'll only ever need to call on <methodname>assign()</methodname>,
-            <methodname>render()</methodname>, or one of the methods for setting/adding
-            filter, helper, and script paths. However, if you wish to extend
-            <classname>Zend_View</classname> yourself, or need access to some of its
-            internals, a number of accessors exist:
+            Normalmente, você somente precisará invocar <methodname>assign()</methodname>,
+            <methodname>render()</methodname>, ou um dos métodos para configurar/adicionar caminhos
+            de filtro, ajudante e script. No entanto, se você desejar estender
+            <classname>Zend_View</classname> você mesmo, ou ter acesso a alguns de seus internos,
+            existe para isso alguns acessadores:
         </para>
 
         <itemizedlist>
             <listitem>
                 <para>
-                    <methodname>getVars()</methodname> will return all assigned variables.
+                    <methodname>getVars()</methodname> retornará todas as variáveis ​​atribuídas.
                 </para>
             </listitem>
 
             <listitem>
                 <para>
-                    <methodname>clearVars()</methodname> will clear all assigned variables;
-                    useful when you wish to re-use a view object, but want to
-                    control what variables are available.
+                    <methodname>clearVars()</methodname> limpará todas as variáveis ​​atribuídas; útil
+                    quando você quer reutilizar um objeto visualização, mas quer controlar quais
+                    variáveis ​​estão disponíveis.
                 </para>
             </listitem>
 
             <listitem>
                 <para>
-                    <methodname>getScriptPath($script)</methodname> will retrieve the
-                    resolved path to a given view script.
+                    <methodname>getScriptPath($script)</methodname> recuperará o caminho resolvido
+                    para um dado script de visualização.
                 </para>
             </listitem>
 
             <listitem>
                 <para>
-                    <methodname>getScriptPaths()</methodname> will retrieve all registered
-                    script paths.
+                    <methodname>getScriptPaths()</methodname> recuperará todos os caminhos de script
+                    registrados.
                 </para>
             </listitem>
 
             <listitem>
                 <para>
-                    <methodname>getHelperPath($helper)</methodname> will retrieve the
-                    resolved path to the named helper class.
+                    <methodname>getHelperPath($helper)</methodname> recuperará o caminho resolvido
+                    para a classe assistente chamada.
                 </para>
             </listitem>
 
             <listitem>
                 <para>
-                    <methodname>getHelperPaths()</methodname> will retrieve all registered
-                    helper paths.
+                    <methodname>getHelperPaths()</methodname> recuperará os caminhos de todos os
+                    assistentes registrados.
                 </para>
             </listitem>
 
             <listitem>
                 <para>
-                    <methodname>getFilterPath($filter)</methodname> will retrieve the
-                    resolved path to the named filter class.
+                    <methodname>getFilterPath($filter)</methodname> recuperará o caminho resolvido
+                    para a classe filtro chamada.
                 </para>
             </listitem>
 
             <listitem>
                 <para>
-                    <methodname>getFilterPaths()</methodname> will retrieve all registered
-                    filter paths.
+                    <methodname>getFilterPaths()</methodname> recuperará os caminhos de todos os
+                    filtros registrados.
                 </para>
             </listitem>
         </itemizedlist>

+ 16 - 17
documentation/manual/pt-br/module_specs/Zend_View-Scripts.xml

@@ -119,13 +119,12 @@ echo $view->render(...);
         </para>
 
         <sect3 id="zend.view.scripts.templates.scripts">
-            <title>Template Systems Using View Scripts</title>
+            <title>Sistemas de Template Usando Scripts de Visualização</title>
 
             <para>
-                A view script may be used to instantiate and manipulate a
-                separate template object, such as a PHPLIB-style template. The
-                view script for that kind of activity might look something like
-                this:
+                Um script de visualização pode ser usado para instanciar e manipular um objeto de
+                template separado, como um template do PHPLIB. O script de visualização para esse
+                tipo de atividade pode ser algo como isto:
             </para>
 
             <programlisting language="php"><![CDATA[
@@ -177,13 +176,13 @@ if ($this->books) {
         </sect3>
 
         <sect3 id="zend.view.scripts.templates.interface">
-            <title>Template Systems Using Zend_View_Interface</title>
+            <title>Sistemas de Template Usando Zend_View_Interface</title>
 
             <para>
-                Some may find it easier to simply provide a
-                <classname>Zend_View</classname>-compatible template engine.
-                <classname>Zend_View_Interface</classname> defines the minimum interface needed for
-                compatability:
+                Alguns podem achar mais fácil simplesmente fornecer um sistema de template
+                compatível com <classname>Zend_View</classname>.
+                <classname>Zend_View_Interface</classname> define a interface mínima necessária para
+                a compatibilidade:
             </para>
 
             <programlisting language="php"><![CDATA[
@@ -238,9 +237,9 @@ public function render($name);
 ]]></programlisting>
 
             <para>
-                Using this interface, it becomes relatively easy to wrap a
-                third-party template engine as a <classname>Zend_View</classname>-compatible class.
-                As an example, the following is one potential wrapper for Smarty:
+                Usando essa interface, torna-se relativamente fácil envolver um sistema de template
+                de terceiro como uma classe compatível com <classname>Zend_View</classname>. Como
+                exemplo, o seguinte é um potencial envoltório para Smarty:
             </para>
 
             <programlisting language="php"><![CDATA[
@@ -417,10 +416,10 @@ class Zend_View_Smarty implements Zend_View_Interface
 ]]></programlisting>
 
             <para>
-                In this example, you would instantiate the
-                <classname>Zend_View_Smarty</classname> class instead of
-                <classname>Zend_View</classname>, and then use it in roughly the same
-                fashion as <classname>Zend_View</classname>:
+                Neste exemplo, você poderia instanciar a classe
+                <classname>Zend_View_Smarty</classname> em vez de <classname>Zend_View</classname>,
+                e então usá-la aproximadamente da mesma maneira que
+                <classname>Zend_View</classname>:
             </para>
 
             <programlisting language="php"><![CDATA[