gettext
(PHP 4, PHP 5, PECL axis2:0.1.0-0.1.1)
gettext — Lookup a message in the current domain
Description
string gettext
( string $message
)
Return Values
Returns a translated string if one is found in the
translation table, or the submitted message if not found.
Examples
Example #1 gettext()-check
<?php
setlocale(LC_ALL, 'de_DE');
bindtextdomain("myPHPApp", "./locale");
textdomain("myPHPApp");
echo gettext("Welcome to My PHP Application");
echo _("Have a nice day");
?>
Notes
Note:
You may use the underscore character '_' as an alias to this function.