gettext: PHP
1
1 15.5.19 PHP Hypertext Preprocessor
1 ----------------------------------
1
1 RPMs
1 mod_php4, mod_php4-core, phpdoc
1
1 File extension
1 ‘php’, ‘php3’, ‘php4’
1
1 String syntax
1 ‘"abc"’, ‘'abc'’
1
1 gettext shorthand
1 ‘_("abc")’
1
1 gettext/ngettext functions
1 ‘gettext’, ‘dgettext’, ‘dcgettext’; starting with PHP 4.2.0 also
1 ‘ngettext’, ‘dngettext’, ‘dcngettext’
1
1 textdomain
1 ‘textdomain’ function
1
1 bindtextdomain
1 ‘bindtextdomain’ function
1
1 setlocale
1 Programmer must call ‘setlocale (LC_ALL, "")’
1
1 Prerequisite
1 —
1
1 Use or emulate GNU gettext
1 use
1
1 Extractor
1 ‘xgettext’
1
1 Formatting with positions
1 ‘printf "%2\$d %1\$d"’
1
1 Portability
1 On platforms without gettext, the functions are not available.
1
1 po-mode marking
1 —
1
1 An example is available in the ‘examples’ directory: ‘hello-php’.
1