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 3
November 14, 2011 @ 08:38:48

PHPMaster.com has posted its third part of its "Localizing PHP Applications 'The Right Way'" series. In this third part you'll learn more about locales and message domain switching.

In Part 2 you gained more insight into using the gettext library by learning the most important functions of the extension. In this part you'll learn how to best use a fallback locale, switch between locales, and override the currently selected message domain.

They show you how to set up the directory structure to handle a fallback locale, a choice to use when the system can't determine which to use. By using a default, you also avoid having the system translate from the default language to...the default language (like "English" to "English"). Included are also the code bits you'll need to switch between locales (just using a different domain) and using the dgettext function to specify a different domain than the selected one.

0 comments voice your opinion now!
localize application gettext domain locale series part3


blog comments powered by Disqus

Similar Posts

Fabien Potencier: Packing a Symfony full-stack Framework Application in one File - Bootstrapping

Job Posting: ManicMelon.com Seeks Mid-Senior LAMP Web Application Developer (Overland Park, KS)

NetTuts.com: Refactoring Legacy Code - Part 10: Dissecting Long Methods with Extractions

Fabien Potencier: Packing a Symfony full-stack Framework Application in one File - Introduction

DeveloperTutorials: Desktop Application Development with PHP-GTK


Community Events





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


library community symfony application opinion introduction language framework podcast security tool interview release package version series update composer voicesoftheelephpant laravel

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