News Feed
Sections




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

PHPMaster.com:
Localizing PHP Applications "The Right Way", Part 2
November 02, 2011 @ 15:05:03

PHPMaster.com has posted the second part of their series about localizing PHP applications "the right way" (hint: it uses gettext).

Welcome back to this series of articles which teach you how to localize your PHP applications using gettext and its PHP extension. In Part 1 you took your first steps towards towards this by installing gettext and Poedit, creating a translation file, and writing a Hello World script. In this part you'll lean about each of the function used in the script, and dive more into the gettext library and its usage.

The explain some of the naming conventions gettext uses for things (like "domains" and "codeset") as well as the shorthand "_()" you can use to retrieve translated values. There's also a look at supporting multiple locales via multiple directories of .po and .mo files.

0 comments voice your opinion now!
localize application gettext poedit series part2


blog comments powered by Disqus

Similar Posts

Cyberlot\'s Blog: Zend Framework take two (using gettext)

PHPit.net: Image manipulation with PHP & the GD library (Part 2)

Job Posting: Active Media Architects Seeks PHP Web Application Programmer (St. Clair Shores, MI)

WebDevLogs: PHP: Calculate PI

Christopher Jones' Blog: Oracle Conference PHP Hands-on-labs are on Sunday 21st September 2008


Community Events





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


introduction threedevsandamaybe language bugfix interview series list tips community symfony framework deployment api zendserver voicesoftheelephpant code conference laravel release podcast

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