Prev | Current Page 665 | Next

W. Jason Gilmore

"Beginning PHP and MySQL: From Novice to Professional"

Internationalizing the Web site
involves making the changes necessary to make it possible to localize the Web site,
which involves updating the site to offer the actual languages and features. Because
programmers are lazy, you??™ll often see internationalization written as i18n, and localization
as l10n.
In this section you??™ll learn about an approach you might consider for internationalizing
and localizing your Web site.
Translating Web Sites with Gettext
Gettext (http://www.gnu.org/software/gettext/) is one of the many great projects
created and maintained by the Free Software Foundation, consisting of a number of utilities
useful for internationalizing and localizing software. Over the years it??™s become a
de facto standard solution for maintaining translations for countless applications and
Web sites. PHP interacts with gettext through a namesake extension, meaning you need
to download the gettext utility and install it on your system. If you??™re running Windows,
download it from http://gnuwin32.sourceforge.net/ and make sure you update the
PATH environment variable to point to the installation directory.
Because PHP??™s gettext extension isn??™t enabled by default, you probably need to
reconfigure PHP. If you??™re on Linux you can enable it by rebuilding PHP with the
--enable-gettext option. On Windows all you need to do is uncomment the php_
gettext.


Pages:
653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677