summaryrefslogtreecommitdiff
path: root/ext/gettext
diff options
context:
space:
mode:
authorChuck Hagenbuch <chagenbu@php.net>2000-03-19 23:39:05 +0000
committerChuck Hagenbuch <chagenbu@php.net>2000-03-19 23:39:05 +0000
commit36912e5ff9a822da025361d9188edfe1aca1fec5 (patch)
tree8d68217e73ef6e03bd41e9d81ff41e8ade8e09f9 /ext/gettext
parent82aa0d1404c4c58f14ad11267d9b3a71246f45e8 (diff)
downloadphp-git-36912e5ff9a822da025361d9188edfe1aca1fec5.tar.gz
initial function prototypes
Diffstat (limited to 'ext/gettext')
-rw-r--r--ext/gettext/gettext.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/gettext/gettext.c b/ext/gettext/gettext.c
index 6fdda566f5..3a0cac4144 100644
--- a/ext/gettext/gettext.c
+++ b/ext/gettext/gettext.c
@@ -45,6 +45,8 @@ PHP_MINFO_FUNCTION(gettext)
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 @@ PHP_FUNCTION(textdomain)
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 @@ PHP_FUNCTION(gettext)
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 @@ PHP_FUNCTION(dgettext)
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 @@ PHP_FUNCTION(dcgettext)
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 @@ PHP_FUNCTION(bindtextdomain)
RETURN_STRING(retval, 1);
}
+/* }}} */
#endif /* HAVE_LIBINTL */