Back to index

php5  5.3.10
php_gettext.h
Go to the documentation of this file.
00001 /*
00002    +----------------------------------------------------------------------+
00003    | PHP Version 5                                                        |
00004    +----------------------------------------------------------------------+
00005    | Copyright (c) 1997-2012 The PHP Group                                |
00006    +----------------------------------------------------------------------+
00007    | This source file is subject to version 3.01 of the PHP license,      |
00008    | that is bundled with this package in the file LICENSE, and is        |
00009    | available through the world-wide-web at the following url:           |
00010    | http://www.php.net/license/3_01.txt                                  |
00011    | If you did not receive a copy of the PHP license and are unable to   |
00012    | obtain it through the world-wide-web, please send a note to          |
00013    | license@php.net so we can mail you a copy immediately.               |
00014    +----------------------------------------------------------------------+
00015    | Author: Alex Plotnick <alex@wgate.com>                               |
00016    +----------------------------------------------------------------------+
00017 */
00018 
00019 /* $Id: php_gettext.h 321634 2012-01-01 13:15:04Z felipe $ */
00020 
00021 #ifndef PHP_GETTEXT_H
00022 #define PHP_GETTEXT_H
00023 
00024 #if HAVE_LIBINTL
00025 
00026 extern zend_module_entry php_gettext_module_entry;
00027 #define gettext_module_ptr &php_gettext_module_entry
00028 
00029 PHP_MINFO_FUNCTION(php_gettext);
00030 
00031 PHP_NAMED_FUNCTION(zif_textdomain);
00032 PHP_NAMED_FUNCTION(zif_gettext);
00033 PHP_NAMED_FUNCTION(zif_dgettext);
00034 PHP_NAMED_FUNCTION(zif_dcgettext);
00035 PHP_NAMED_FUNCTION(zif_bindtextdomain);
00036 #if HAVE_NGETTEXT
00037 PHP_NAMED_FUNCTION(zif_ngettext);
00038 #endif
00039 #if HAVE_DNGETTEXT
00040 PHP_NAMED_FUNCTION(zif_dngettext);
00041 #endif
00042 #if HAVE_DCNGETTEXT
00043 PHP_NAMED_FUNCTION(zif_dcngettext);
00044 #endif
00045 #if HAVE_BIND_TEXTDOMAIN_CODESET
00046 PHP_NAMED_FUNCTION(zif_bind_textdomain_codeset);
00047 #endif
00048 
00049 #else
00050 #define gettext_module_ptr NULL
00051 #endif /* HAVE_LIBINTL */
00052 
00053 #define phpext_gettext_ptr gettext_module_ptr
00054 
00055 #endif /* PHP_GETTEXT_H */