php_gettext.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 5 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2016 The PHP Group |
  6. +----------------------------------------------------------------------+
  7. | This source file is subject to version 3.01 of the PHP license, |
  8. | that is bundled with this package in the file LICENSE, and is |
  9. | available through the world-wide-web at the following url: |
  10. | http://www.php.net/license/3_01.txt |
  11. | If you did not receive a copy of the PHP license and are unable to |
  12. | obtain it through the world-wide-web, please send a note to |
  13. | license@php.net so we can mail you a copy immediately. |
  14. +----------------------------------------------------------------------+
  15. | Author: Alex Plotnick <alex@wgate.com> |
  16. +----------------------------------------------------------------------+
  17. */
  18. /* $Id$ */
  19. #ifndef PHP_GETTEXT_H
  20. #define PHP_GETTEXT_H
  21. #if HAVE_LIBINTL
  22. extern zend_module_entry php_gettext_module_entry;
  23. #define gettext_module_ptr &php_gettext_module_entry
  24. PHP_MINFO_FUNCTION(php_gettext);
  25. PHP_NAMED_FUNCTION(zif_textdomain);
  26. PHP_NAMED_FUNCTION(zif_gettext);
  27. PHP_NAMED_FUNCTION(zif_dgettext);
  28. PHP_NAMED_FUNCTION(zif_dcgettext);
  29. PHP_NAMED_FUNCTION(zif_bindtextdomain);
  30. #if HAVE_NGETTEXT
  31. PHP_NAMED_FUNCTION(zif_ngettext);
  32. #endif
  33. #if HAVE_DNGETTEXT
  34. PHP_NAMED_FUNCTION(zif_dngettext);
  35. #endif
  36. #if HAVE_DCNGETTEXT
  37. PHP_NAMED_FUNCTION(zif_dcngettext);
  38. #endif
  39. #if HAVE_BIND_TEXTDOMAIN_CODESET
  40. PHP_NAMED_FUNCTION(zif_bind_textdomain_codeset);
  41. #endif
  42. #else
  43. #define gettext_module_ptr NULL
  44. #endif /* HAVE_LIBINTL */
  45. #define phpext_gettext_ptr gettext_module_ptr
  46. #endif /* PHP_GETTEXT_H */