News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Content with Style Blog:
Quick helper script for ZF view translations
October 29, 2009 @ 07:54:01

On the Content with Style blog today Pascal Opitz has posted a helper script for Zend Framework applications to make internationalization of your templates simpler.

Manual copy and paste jobs are a pain. Faced with the prospect of internationalizing 30+ big view files, I thought there had to be a better way. When I started to use the reg exp search facility in Textmate, the penny dropped. A helper script is what was needed.

The CLI script he's created goes through a file, in this case a view file (phtml) and does a replace on the values defined in an ini file. It's a simple one-to-one, exact match relationship but it can make it much easier to do simple translations on a large number of pages.

0 comments voice your opinion now!
zendframework translation helper script tutorial


blog comments powered by Disqus

Similar Posts

Brian Swan's Blog: Using the Windows Azure Tools for Eclipse with PHP

The Bakery: Nine New Tutorials, Helpers and Plugins for CakePHP

NetTuts.com: Rapid Application Prototyping in PHP Using a Micro Framework

SitePoint PHP Blog: Integrating Polymer/Dart and Symfony Part 2

IBM developerWorks: Understanding the Zend Framework,Part 4: When there is no feed, Zend_HTTP_Client


Community Events

Don't see your event here?
Let us know!


laravel podcast performance symfony2 extension library example version application voicesoftheelephpant api introduction conference opinion interview community framework php7 release series

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework