O'Reilly logo

Zend Framework 2 Cookbook by Josephus Callaars

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Translating your application

In this recipe we will be using the Zend Framework 2 skeleton as a base, but we will create a new module to show how it all works.

Getting ready

For this recipe, we assume that you have a working Zend Framework 2 application/skeleton in place. To ensure that we can actually run the code that we produce in the recipe, we need to make sure that the intl and gettext extensions in PHP are enabled.

For translating the strings we will be using Poedit, a cross-platform open source application used for translating gettext catalogs. The current version is 1.5.5 and can be found at http://www.poedit.net/ website. We are using gettext as this is a widely used internationalization and localization system for writing multilingual ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required