From a37b550e14df6f2a48dd9cab03d437ad67107d01 Mon Sep 17 00:00:00 2001 From: Matheus Ribak Date: Tue, 25 Apr 2017 19:45:26 -0300 Subject: [PATCH 1/7] Update mactools.rst --- pt/reference/mactools.rst | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/pt/reference/mactools.rst b/pt/reference/mactools.rst index bbbb81bc7c1d..2fcbf3cfd0d5 100644 --- a/pt/reference/mactools.rst +++ b/pt/reference/mactools.rst @@ -1,28 +1,28 @@ -Phalcon Developer Tools on Mac OS X +Phalcon Developer Tools no Mac OS X =================================== -These steps will guide you through the process of installing Phalcon Developer Tools for OS/X. +Estas medidas irão guiá-lo através do processo de instalação da Phalcon Developer Tools para OS/X. -Prerequisites -------------- -The Phalcon PHP extension is required to run Phalcon Tools. If you haven't installed it yet, please see the :doc:`Installation ` section for instructions. +Pré-requisitos +-------------- +A extensão Phalcon PHP é necessário para executar Phalcon Tools. Se você ainda não tiver instalado, por favor consulte o: doc:`Instalação ` seção para obter instruções. Download -------- -You can download a cross platform package containing the developer tools from the `Download`_ section. You can also clone it from `Github`_. +Você pode baixar um pacote da plataforma que contém as ferramentas de desenvolvimento a partir da seção Download_ . Também você pode cloná-lo do Github_. -Open the terminal application: +Abra o aplicativo de terminal: .. figure:: ../_static/img/mac-1.png :align: center -Copy & Paste the commands below in your terminal: +Copie e cole os comandos abaixo em seu terminal: .. code-block:: bash git clone git://github.com/phalcon/phalcon-devtools.git -Then enter the folder where the tools were cloned and execute ". ./phalcon.sh", (don't forget the dot at beginning of the command): +Em seguida, digite a pasta onde as ferramentas foram clonadas e execute "./phalcon.sh", (não se esqueça do ponto no início do comando): .. code-block:: bash @@ -30,7 +30,7 @@ Then enter the folder where the tools were cloned and execute ". ./phalcon.sh", . ./phalcon.sh -In the terminal window, type the following commands to create a symbolic link to the phalcon.php script: +Na janela do terminal, digite os seguintes comandos para criar um link simbólico para o script phalcon.php: .. code-block:: bash @@ -38,14 +38,14 @@ In the terminal window, type the following commands to create a symbolic link to chmod +x ~/phalcon-tools/phalcon -Type the command "phalcon" and you will see something like this: +Digite o comando "phalcon" e você verá algo como isto: .. figure:: ../_static/img/mac-5.png :align: center -Congratulations you now have Phalcon tools installed! +Parabéns, agora você tem instalado a Phalcon tools! -Related Guides +Guias Relacionados ^^^^^^^^^^^^^^ * :doc:`Using Developer Tools ` * :doc:`Installation on Windows ` From 463b70a9dfa674623f559f6d0b375cbd3e788216 Mon Sep 17 00:00:00 2001 From: Matheus Ribak Date: Tue, 25 Apr 2017 19:46:18 -0300 Subject: [PATCH 2/7] Update mactools.rst --- pt/reference/mactools.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pt/reference/mactools.rst b/pt/reference/mactools.rst index 2fcbf3cfd0d5..78bbc364cbaf 100644 --- a/pt/reference/mactools.rst +++ b/pt/reference/mactools.rst @@ -46,7 +46,7 @@ Digite o comando "phalcon" e você verá algo como isto: Parabéns, agora você tem instalado a Phalcon tools! Guias Relacionados -^^^^^^^^^^^^^^ +^^^^^^^^^^^^^^^^^^ * :doc:`Using Developer Tools ` * :doc:`Installation on Windows ` * :doc:`Installation on Linux ` From a40946f30f5b68854461d07c70c1bc451c0a3f80 Mon Sep 17 00:00:00 2001 From: Matheus Ribak Date: Tue, 25 Apr 2017 19:47:02 -0300 Subject: [PATCH 3/7] Update wintools.rst --- pt/reference/wintools.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pt/reference/wintools.rst b/pt/reference/wintools.rst index 6f755f0dd4f1..bc41110ce10f 100644 --- a/pt/reference/wintools.rst +++ b/pt/reference/wintools.rst @@ -67,8 +67,8 @@ Congratulations you now have Phalcon tools installed! Parabéns, você agora têm o Phalcon tools instalado! -Related Guides -^^^^^^^^^^^^^^ +Guias Relacionados +^^^^^^^^^^^^^^^^^^ * :doc:`Using Developer Tools ` * :doc:`Installation on OS X ` * :doc:`Installation on Linux ` From 92339eba17a8395453d413f786090ce4097ac854 Mon Sep 17 00:00:00 2001 From: Matheus Ribak Date: Tue, 25 Apr 2017 20:21:42 -0300 Subject: [PATCH 4/7] Update mactools.rst --- pt/reference/mactools.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pt/reference/mactools.rst b/pt/reference/mactools.rst index 78bbc364cbaf..e17402ce71f2 100644 --- a/pt/reference/mactools.rst +++ b/pt/reference/mactools.rst @@ -22,7 +22,7 @@ Copie e cole os comandos abaixo em seu terminal: git clone git://github.com/phalcon/phalcon-devtools.git -Em seguida, digite a pasta onde as ferramentas foram clonadas e execute "./phalcon.sh", (não se esqueça do ponto no início do comando): +Em seguida, digite a pasta onde as ferramentas foram clonadas e execute ". ./phalcon.sh", (não se esqueça do ponto no início do comando): .. code-block:: bash From 3e25381b79da05227edb08318edb9def40c456b7 Mon Sep 17 00:00:00 2001 From: Matheus Ribak Date: Tue, 25 Apr 2017 20:56:13 -0300 Subject: [PATCH 5/7] Update mactools.rst Changed due to corrections. --- pt/reference/mactools.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pt/reference/mactools.rst b/pt/reference/mactools.rst index e17402ce71f2..7b74a088df2d 100644 --- a/pt/reference/mactools.rst +++ b/pt/reference/mactools.rst @@ -5,7 +5,7 @@ Estas medidas irão guiá-lo através do processo de instalação da Phalcon Dev Pré-requisitos -------------- -A extensão Phalcon PHP é necessário para executar Phalcon Tools. Se você ainda não tiver instalado, por favor consulte o: doc:`Instalação ` seção para obter instruções. +A extensão Phalcon PHP é necessário para executar Phalcon Tools. Se você ainda não tiver instalado, por favor consulte a seção :doc:`Installation ` para obter instruções. Download -------- From 28e762b188efbf3b7fbb417930161935da7fe299 Mon Sep 17 00:00:00 2001 From: Matheus Ribak Date: Tue, 25 Apr 2017 21:19:31 -0300 Subject: [PATCH 6/7] Update crypt.rst --- pt/reference/crypt.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pt/reference/crypt.rst b/pt/reference/crypt.rst index 41a97456bc27..bb2c2672c9a2 100644 --- a/pt/reference/crypt.rst +++ b/pt/reference/crypt.rst @@ -7,8 +7,8 @@ Essa classe oferece uma simples camada orientada a objetos baseada na biblioteca Por padrão, esse componente provê uma encriptação segura usando AES-256. .. highlights:: - You must use a key length corresponding to the current algorithm. - For the algorithm used by default it is 32 bytes. + Você deve usar um comprimento de chave correspondente ao algoritmo atual. + Para o algoritmo usado por padrão é 32 bytes. Uso Básico ---------- From 9a112eb164b6319a02eb73000281ad12dd3ac799 Mon Sep 17 00:00:00 2001 From: Matheus Ribak Date: Tue, 25 Apr 2017 21:33:59 -0300 Subject: [PATCH 7/7] Update pagination.rst --- pt/reference/pagination.rst | 57 ++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/pt/reference/pagination.rst b/pt/reference/pagination.rst index 8e982e8ccb84..085f768be394 100755 --- a/pt/reference/pagination.rst +++ b/pt/reference/pagination.rst @@ -1,12 +1,11 @@ -Pagination -========== +Paginação +========= -The process of pagination takes place when we need to present big groups of arbitrary data gradually. :code:`Phalcon\Paginator` offers a -fast and convenient way to split these sets of data into browsable pages. +The process of pagination takes place when we need to present big groups of arbitrary data gradually. :code:`Phalcon\Paginator` oferece uma maneira rápida e conveniente de dividir esses conjuntos de dados em páginas navegáveis. -Data Adapters -------------- -This component makes use of adapters to encapsulate different sources of data: +Adaptadores de Dados +-------------------- +Este componente faz uso de adaptadores para encapsular diferentes fontes de dados: +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Adapter | Description | @@ -18,9 +17,9 @@ This component makes use of adapters to encapsulate different sources of data: | :doc:`Phalcon\\Paginator\\Adapter\\QueryBuilder <../api/Phalcon_Paginator_Adapter_QueryBuilder>` | Use a :doc:`Phalcon\\Mvc\\Model\\Query\\Builder <../api/Phalcon_Mvc_Model_Query_Builder>` object as source data | +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -Examples +Exemplos -------- -In the example below, the paginator will use the result of a query from a model as its source data, and limit the displayed data to 10 records per page: +No exemplo abaixo, o paginador usará o resultado de uma consulta de um modelo como seus dados de origem e limitará os dados exibidos a 10 registros por página: .. code-block:: php @@ -49,8 +48,8 @@ In the example below, the paginator will use the result of a query from a model // Get the paginated results $page = $paginator->getPaginate(); -The :code:`$currentPage` variable controls the page to be displayed. The :code:`$paginator->getPaginate()` returns a :code:`$page` -object that contains the paginated data. It can be used for generating the pagination: +A variável :code:`$currentPage` controla a página a ser exibida. :code:`$paginator->getPaginate()` retorna um objeto :code:`$page` +que contém os dados paginados. Ele pode ser usado para gerar a paginação: .. code-block:: html+php @@ -69,7 +68,7 @@ object that contains the paginated data. It can be used for generating the pagin -The :code:`$page` object also contains navigation data: +O objeto :code:`$page` também contém dados de navegação: .. code-block:: html+php @@ -80,9 +79,9 @@ The :code:`$page` object also contains navigation data: current, " of ", $page->total_pages; ?> -Adapters Usage --------------- -An example of the source data that must be used for each adapter: +Uso de Adaptadores +------------------ +Um exemplo dos dados de origem que devem ser usados para cada adaptador: .. code-block:: php @@ -131,31 +130,31 @@ An example of the source data that must be used for each adapter: ] ); -Page Attributes ---------------- -The :code:`$page` object has the following attributes: +Atributos de Página +------------------- +O objeto :code:`$page` possui os seguintes atributos +-------------+--------------------------------------------------------+ -| Attribute | Description | +| Atributo | Descrição | +=============+========================================================+ -| items | The set of records to be displayed at the current page | +| items | O conjunto de registros a ser exibido na página atual | +-------------+--------------------------------------------------------+ -| current | The current page | +| current | A página atual | +-------------+--------------------------------------------------------+ -| before | The previous page to the current one | +| before | A página anterior à atual | +-------------+--------------------------------------------------------+ -| next | The next page to the current one | +| next | A próxima página para a atual | +-------------+--------------------------------------------------------+ -| last | The last page in the set of records | +| last | A última página no conjunto de registros | +-------------+--------------------------------------------------------+ -| total_pages | The number of pages | +| total_pages | O número de páginas | +-------------+--------------------------------------------------------+ -| total_items | The number of items in the source data | +| total_items | O número de itens nos dados de origem | +-------------+--------------------------------------------------------+ -Implementing your own adapters ------------------------------- -The :doc:`Phalcon\\Paginator\\AdapterInterface <../api/Phalcon_Paginator_AdapterInterface>` interface must be implemented in order to create your own paginator adapters or extend the existing ones: +Implementando seus próprios adaptadores +--------------------------------------- +A interface :doc:`Phalcon\\Paginator\\AdapterInterface <../api/Phalcon_Paginator_AdapterInterface>` deve ser implementada para criar seus próprios adaptadores, paginadores ou estender os existentes: .. code-block:: php