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 1
October 31, 2011 @ 08:38:25

PHPMaster.com has a new tutorial sharing what they call the right way for localizing PHP applications with the help of PHP's gettext functionality.

Localizing software applications in general used to be a cumbersome and error-prone task resulting in a lot of messy code. Some developers even use different versions of code for the same application but for different locales, which makes managing the codebase practically impossible. Enter gettext, the wonderful open-source tool that will make your life easier by allowing you to concentrate on your code. Localization becomes a matter of writing separate translation files for the target language, which can easily be done by a translator using Poedit.

They help you get your environment set up - PHP and a href="http://poedit.net/">Poedit, a gettext catalog editor - for both linux- and Windows-based OSes. They walk you through the creation of a simple project and a few basic "hello world" tokens. Using the files is as easy as setting the correct locale and default domain for your application. Then output is just a basic echo away.

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


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: Discover Graph Databases with Neo4j and PHP

Zend Developer Zone: PHP Abstract Episode 5: Using the Zend Toolbars For Debugging & Profiling Apps

O'Reilly: Migrating Web-Based PHP Applications to Ajax

Padraic Brady's Blog: Zend Framework Blog Tutorial - Part 6: Zend_Form & Zend_Auth

Erika Heidi: A beginners guide to Vagrant and Puppet, part 3 - facts, conditionals and modules


Community Events

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


podcast release unittest development introduction series conference interview extension library language community framework laravel5 opinion api wordpress middleware laravel voicesoftheelephpant

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