Post Format: PHP
Global markets are driven by competition. If you want to reach new customers, you can’t get around localizing your website or app. From common strings and menu items all over to form or button labels – every single detail that might affect the buying decision of your website’s visitors needs to be adjusted to their needs and wishes. In this tutorial, we’ll prepare a web application for localization with Zend Framework (ZF), one of the most popular frameworks for PHP development. Assuming you’re already comfortable with developing websites with ZF, I only focus on internationalization in this guide.
PHP seems to resist time and is still quite a popular choice for building web apps. We’ve already discussed how to translate PHP apps. Our focus today is on Zend Framework, an open source, object-oriented PHP framework comprised of more than 60 packages, each one serving a particular purpose. It is the zend–i18n package that makes PHP i18n of web apps possible. There is another one calledzend–mvc–i18n which is needed for the integration of the zend–i18n package into the MVC framework. As most of the web applications that we create follow an MVC design pattern, we’ll use in this tutorial.