cvs: /php4/ext/gettext gettext.c
| From: | Charles Hagenbuch | Date: | Sun, 19 Mar 2000 23:39:35 +0000 |
| Subject: | cvs: /php4/ext/gettext gettext.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-12419@lists.php.net to get a copy of this message | ||
chagenbu Sun Mar 19 15:39:35 2000 EDT
Modified files:
/php4/ext/gettext gettext.c
Log:
initial function prototypes
Index: php4/ext/gettext/gettext.c
diff -u php4/ext/gettext/gettext.c:1.14 php4/ext/gettext/gettext.c:1.15
--- php4/ext/gettext/gettext.c:1.14 Sat Feb 19 15:21:29 2000
+++ php4/ext/gettext/gettext.c Sun Mar 19 15:39:05 2000
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gettext.c,v 1.14 2000/02/19 23:21:29 zeev Exp $ */
+/* $Id: gettext.c,v 1.15 2000/03/19 23:39:05 chagenbu Exp $ */
#include <stdio.h>
#include "php.h"
@@ -45,6 +45,8 @@
php_printf("GNU gettext support active.");
}
+/* {{{ proto string textdomain(string domain)
+ Set the textdomain to "domain". Returns the current domain. */
PHP_FUNCTION(textdomain)
{
pval **domain;
@@ -67,7 +69,10 @@
RETURN_STRING(retval, 1);
}
+/* }}} */
+/* {{{ proto string gettext(string msgid)
+ Return the translation of msgid for the current domain, or msgid unaltered if a translation does
not exist. */
PHP_FUNCTION(gettext)
{
pval **msgid;
@@ -82,7 +87,10 @@
RETURN_STRING(msgstr, 1);
}
+/* }}} */
+/* {{{ proto string dgettext(string domain_name, string msgid)
+ Return the translation of msgid for domain_name, or msgid unaltered if a translation does not
exist. */
PHP_FUNCTION(dgettext)
{
pval **domain_name, **msgid;
@@ -100,7 +108,10 @@
RETURN_STRING(msgstr, 1);
}
+/* }}} */
+/* {{{ proto string dcgettext(string domain_name, string msgid, long category)
+ Return the translation of msgid for domain_name and category, or msgid unaltered if a
translation does not exist. */
PHP_FUNCTION(dcgettext)
{
pval **domain_name, **msgid, **category;
@@ -121,7 +132,10 @@
RETURN_STRING(msgstr, 1);
}
+/* }}} */
+/* {{{ proto string bindtextdomain(string domain_name, string dir)
+ Bind to the text domain domain_name, looking for translations in dir. Returns the current
domain. */
PHP_FUNCTION(bindtextdomain)
{
pval **domain_name, **dir;
@@ -147,6 +161,7 @@
RETURN_STRING(retval, 1);
}
+/* }}} */
#endif /* HAVE_LIBINTL */