HTML & CSS
Article
By Abdullah Abouzekry

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

By Abdullah Abouzekry
Help us help you! You'll get a... FREE 6-Month Subscription to SitePoint Premium Plus you'll go in the draw to WIN a new Macbook SitePoint 2017 Survey Yes, let's Do this It only takes 5 min

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. So without further ado, let’s dive in! Directory Structure and Fallback Locales If you’ve been following along in the previous articles, you should have the following directory structure for testing the gettext library. While it is typical, it is not designed to achieve the best performance.

See more here:
PHPMaster: Localizing PHP Applications “The Right Way”, Part 3

--ADVERTISEMENT--

More:
Login or Create Account to Comment
Login Create Account
Recommended
Sponsors
Get the most important and interesting stories in tech. Straight to your inbox, daily.Is it good?