cvs: /php3/functions gettext.c
| From: | Charles Hagenbuch | Date: | Sun, 19 Mar 2000 23:40:58 +0000 |
| Subject: | cvs: /php3/functions gettext.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-17054@lists.php.net to get a copy of this message | ||
chagenbu Sun Mar 19 15:40:58 2000 EDT
Modified files:
/php3/functions gettext.c
Log:
initial function prototypes
Index: php3/functions/gettext.c
diff -u php3/functions/gettext.c:1.2 php3/functions/gettext.c:1.3
--- php3/functions/gettext.c:1.2 Fri Dec 31 20:31:15 1999
+++ php3/functions/gettext.c Sun Mar 19 15:40:57 2000
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gettext.c,v 1.2 2000/01/01 04:31:15 sas Exp $ */
+/* $Id: gettext.c,v 1.3 2000/03/19 23:40:57 chagenbu Exp $ */
#include <stdio.h>
#include "php.h"
@@ -57,6 +57,8 @@
php3_printf("GNU gettext support active.");
}
+/* {{{ proto string textdomain(string domain)
+ Set the textdomain to "domain". Returns the current domain. */
void php3_textdomain(INTERNAL_FUNCTION_PARAMETERS)
{
pval *domain;
@@ -79,7 +81,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. */
void php3_gettext(INTERNAL_FUNCTION_PARAMETERS)
{
pval *msgid;
@@ -94,7 +99,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. */
void php3_dgettext(INTERNAL_FUNCTION_PARAMETERS)
{
pval *domain_name, *msgid;
@@ -112,7 +120,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. */
void php3_dcgettext(INTERNAL_FUNCTION_PARAMETERS)
{
pval *domain_name, *msgid, *category;
@@ -133,7 +144,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. */
void php3_bindtextdomain(INTERNAL_FUNCTION_PARAMETERS)
{
pval *domain_name, *dir;
@@ -159,6 +173,7 @@
RETURN_STRING(retval, 1);
}
+/* }}} */
#endif /* HAVE_LIBINTL */