anterior  
índice  
siguiente  
Updated 2012-10-02 - Version ZF 2.0.3

Styling and Translations

We’ve picked up the SkeletonApplication’s styling, which is fine, but we need to change the title and and remove the copyright message.

The ZendSkeletonApplication is set up to use Zend\I18n’s translation functionality for all the text. It uses .po files that live in application/language, and you need to use poedit to change the text. Start poedit and open application/language/en_US.po. Click on “Skeleton Application” in the list of Original strings and then type in “Tutorial” as the translation.

../_images/user-guide.styling-and-translations.poedit.png

Press Save in the toolbar and poedit will create an en_US.mo file for us.

To remove the copyright message, we need to edit the Application module’s layout.phtml view script:

// module/Application/view/layout/layout.phtml:
// Remove this line:
<p>&copy; 2005 - 2012 by Zend Technologies Ltd. <?php echo $this->translate('All
rights reserved.') ?></p>

The page now looks ever so slightly better now!

../_images/user-guide.styling-and-translations.translated-image.png
|

Tema anterior

Base de Datos y Modelos

Próximo tema

Forms and actions

Esta página

Nota: Es necesario estar conectado a tu cuenta GitHub para contribuir a la documentación.

Edit this document

Edit this document

The source code of this file is hosted on GitHub. Everyone can update and fix errors in this document with few clicks - no downloads needed.

  1. Login with your GitHub account.
  2. Go to Styling and Translations on GitHub.
  3. Edit file contents using GitHub's text editor in your web browser
  4. Fill in the Commit message text box at the end of the page telling why you did the changes. Press Propose file change button next to it when done.
  5. On Send a pull request page you don't need to fill in text anymore. Just press Send pull request button.
  6. Your changes are now queued for review under project's Pull requests tab on GitHub.