Hi,
Using gettext in your application
Using gettext to get translated strings couldn't be easier. Just call gettext("Text to be translated") and you get a localized version of "Text to be translated" if available, or "Text to be translated" otherwise. If you're lazy, you can use _() instead of gettext().
Let's try this out. Create a new PHP file (we'll call it test.php), and insert the following code:
PHP Code:
<?php
echo _("Hello World!");
?>
When you open that page in your browser, you will see "Hello World!".