Joe Gornick

Web Geekology

Zend Framework Best Practices – Part 2: I18n

For the second part of my Zend Framework Best Practices series, I’d like to show you what I’ve found to be a simple and solid implementation of internationalizing your website.

Zend Framework already contains components like Zend_Locale and Zend_Translate to assist in internationalizing your website. You use the Zend_Locale instance in conjunction with the Zend_Translate to know what current locale is being used and how to translate the content. I’m going to show you how to implement these into your website.

If you haven’t read the first part of this series, I would recommend it as all my examples here will be based on that structure.

Zend Framework Best Practices – Part 1: Getting Started

Welcome to part one of my Zend Framework Best Practices series. When I started using Zend Framework a little over two years ago, I found it very difficult to find definitive methods to use when building your application. However, after the release of Zend Framework 1.8, books like Zend Framework in Action, more community involvement and of course my own experiences, I feel that I’ve found a simple, clean and efficient way to make your application.

This series will cover many areas of a website including directory structure, bootstrapping, caching, navigation, ACL & authorization and I18N.

Disclaimer: I don’t want this series to be taken as the “only way” to use Zend Framework in your application. In fact, it would be greatly appreciated if others are able to point out areas where my approach is not the most efficient and provide ways to fix it.

Where’s the Prototype Framework Community?

Over the past year, I’ve been using the Prototype javascript framework. I like it because of it’s simplicity, documentation and speed. I’ve also been keeping an eye on the progression of jQuery. I’ve noticed one very big thing that I just can’t seem to find with Prototype … The jQuery community is booming!

To back my comment, take a look at the jQuery plugins repository. It is chock-full of useful plugins that use the jQuery framework. Granted, there are a good amount of plugins for the Prototype framework, but where’s the wiki/community site for them? Or is there a site, but I just have not come across it yet?