1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 #ifndef PHP_GETTEXT_H
22 #define PHP_GETTEXT_H
23
24 #if HAVE_LIBINTL
25
26 extern zend_module_entry php_gettext_module_entry;
27 #define gettext_module_ptr &php_gettext_module_entry
28
29 #include "php_version.h"
30 #define PHP_GETTEXT_VERSION PHP_VERSION
31
32 PHP_MINFO_FUNCTION(php_gettext);
33
34 PHP_NAMED_FUNCTION(zif_textdomain);
35 PHP_NAMED_FUNCTION(zif_gettext);
36 PHP_NAMED_FUNCTION(zif_dgettext);
37 PHP_NAMED_FUNCTION(zif_dcgettext);
38 PHP_NAMED_FUNCTION(zif_bindtextdomain);
39 #if HAVE_NGETTEXT
40 PHP_NAMED_FUNCTION(zif_ngettext);
41 #endif
42 #if HAVE_DNGETTEXT
43 PHP_NAMED_FUNCTION(zif_dngettext);
44 #endif
45 #if HAVE_DCNGETTEXT
46 PHP_NAMED_FUNCTION(zif_dcngettext);
47 #endif
48 #if HAVE_BIND_TEXTDOMAIN_CODESET
49 PHP_NAMED_FUNCTION(zif_bind_textdomain_codeset);
50 #endif
51
52 #else
53 #define gettext_module_ptr NULL
54 #endif
55
56 #define phpext_gettext_ptr gettext_module_ptr
57
58 #endif