News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Lingohub.com:
PHP internationalization with gettext tutorial
July 17, 2013 @ 09:41:37

On Lingohub.com there's a recent tutorial posted about using gettext for the internationalization of your application. The gettext functionality lets you define POT files (portable object templates) that contain the strings for the given language.

GNU gettext is a package that offers to programmers, translators and even users a well integrated set of tools that provide a framework within which other free packages may produce multi-lingual messages. [...] In this tutorial we want to document how PHP internationalization with gettext works. It covers setup, use and best practice.

They go through the installation of both the gettext software and how to get support for it built into PHP. There's a detailed guide to creating the POT files and the formatting you can use to define things like simple messages, plurals and multiple response messages. An example file is included to illustrate. They also talk about the directory structure to use and how to get it working in PHP (sample code).

0 comments voice your opinion now!
gettext tutorial install configure pot file directory

Link: http://blog.lingohub.com/2013/07/php-internationalization-with-gettext-tutorial

blog comments powered by Disqus

Similar Posts

Kevin Schroeder's Blog: Connecting PHP to ActionScript and Flex using Stomp

PHPBuilder.com: A Sanity-saving Debugging Solution for Your PHP Development

Francois Zaninotto's Blog: Validating a YAML file against a schema in PHP

Zend Developer Zone: Zend_Controller_Action, Now With Parameters!

Joshua Thijssen's Blog: PHPShout : a shoutcast streamer in PHP


Community Events











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


install unittest overview hhvm package facebook release hack code application introduction component framework symfony2 podcast security opinion composer language threedevsandamaybe

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