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;
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;
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;
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;
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;
RETURN_STRING(retval, 1);
}
+/* }}} */
#endif /* HAVE_LIBINTL */