PHPMaster: Localizing PHP Applications “The Right Way”, Part 5

Tweet

In Part 4 you learned how to use gettext for one of the most complex aspects of localization a developer can face, plural forms. In this, the final part of the five-part series, I’ll teach you how you to automate part of the localization process by extracting msgids and generating a PO template file ( .pot ) from your application’s PHP code. Let’s dive right in! Extracting Strings from Source You’ve seen how powerful gettext is, and how easy it was to incorporate localization into your applications. But what about ongoing maintenance?

Original post:
PHPMaster: Localizing PHP Applications “The Right Way”, Part 5

Get your free chapter of Level Up Your Web Apps with Go

Get a free chapter of Level Up Your Web Apps with Go, plus updates and exclusive offers from SitePoint.

No Reader comments