News Feed
Sections




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

Gabi Solomon's Blog:
Using Zend Framework Language Component
December 23, 2008 @ 13:27:55

Gabi Solomon as a recent post to his blog about using the routing in the Zend Framework to add a multi-language component to your site.

Today i will continue the series of articles on the Zend Framework and i am going to talk about how i come to use the language component from Zend. The way i decided to go with it is by having a controller plugin that starts the language component and also detects the language.

He shows the creation of the bootstrap file to handle the different language requests in the URL and how to register the plugin for the application to use later on (GSD_Controller_Plugin_Language). The code for the plugin is included - it uses the Zend_Locale and Zend_Translate components to handle the translation between languages. This lets you push information out to the view and have the framework automatically translate it to the right language for you based on the URL.

0 comments voice your opinion now!
zendframework language component zendlocale zendtranslate plugin


blog comments powered by Disqus

Similar Posts

Developer.com: Authenticating Users with OpenID and the Zend Framework

Ben Ramsey: Introducing Array_column() in PHP 5.5

Community News: Andi Gutmans to Present at AjaxWorld 2007

Zend Developer Zone: ZendCon Sessions Episode 38: Reusable Bootstrap Resources with Zend_Application

Matthew Weir O'Phinney's Blog: Zend_Layout and Zend_View Enhanced components now in core


Community Events





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


podcast community artisanfiles symfony tool introduction framework opinion language security version interview list conference laravel library voicesoftheelephpant series composer release

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