Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/992'
Browse files Browse the repository at this point in the history
Close #992
  • Loading branch information
weierophinney committed Aug 21, 2013
2 parents 0f51d7e + 4e11fe1 commit c2d96aa
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions docs/languages/pt/user-guide/styling-and-translations.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.. EN-Revision: 96c6ad3
.. _user-guide.styling-and-translations:

Estilizando e Traduzindo
========================

Nos usamos inicialmente o estilo da Aplicação Skeleton, e não existe nenhum problema quanto
a isso, porem nos queremos mudar o título e remoer a mensagem de licenciamento.

A Aplicação Skeleton está configurada para utilizar as funcionalidades de tradução de ``Zend\I18n``
para todos os textos. Para isso são usados arquivos ``.po`` armazenados em ``Application/language``,
e por isso nos precisamos usar `poedit <http://www.poedit.net/download.php>`_ para alterar esse texto.
Inicie o poedit e abra o arquivo ``application/language/en_US.po``. Clique em “Skeleton Application”
na lista ``Original string`` e então digite “Tutorial” como uma tradução.

.. image:: ../images/user-guide.styling-and-translations.poedit.png

Clique em ``Save`` na barra de ferramentas para que o poedit crie um arquivo ``en_US.mo`` para nos.
Se você achar que nenhum arquivo ``.mo`` foi gerado, verifique em ``Preferences -> Editor -> Behavior``
se o checkbox ``Automatically compile .mo file on save`` está marcado.

Para remover a mensagem de licenciamento nos precisamos editar o arquivo ``layout.phtml`` no
modulo ``Application``:

.. code-block:: php
// module/Application/view/layout/layout.phtml:
// Remova essa linha:
<p>&copy; 2005 - 2012 by Zend Technologies Ltd. <?php echo $this->translate('All
rights reserved.') ?></p>
A página agora parece ter ficado um pouco melhor agora!

.. image:: ../images/user-guide.styling-and-translations.translated-image.png
:width: 940 px

0 comments on commit c2d96aa

Please sign in to comment.