News Feed
Sections




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

CodeForest.net:
Translate and Localize your web application with PHP and gettext
October 06, 2010 @ 10:45:29

On CodeForest today there's a new tutorial showing you how to localize your application with the help of the gettext functionality PHP offers or just simple arrays.

Wikipedia says: Localization is the process of translating a product into different languages or adapting a language for a specific country or region. There are several techniques that developer can use to localize an application. The most common ones are using arrays and gettext. I will try to explain both and how to use them.

They provide code examples for each method - arrays containing literal strings matching one-for-one with their English counterparts and the gettext method where language files are created and handled outside of the codebase. Gettext does require support to be loading into your installation (might not be by default).

0 comments voice your opinion now!
tutorial translate application gettext array


blog comments powered by Disqus

Similar Posts

Raphael Stolt's Blog: Using MongoHq in Zend Framework based applications

Chris Hartjes' Blog: Book Review -- CakePHP 1.3 Application Development Cookbook

Sanisoft Blog: Multilingual apps with CakePHP

David Coallier's Blog: Translating JAWS from PHP4 to PHP6 (Woo I'm a mentor)

Mikko Koppanen's Blog: Creating a reflection


Community Events





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


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

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