Gettext
gettext
The gettext functions implement a NLS (Native Language Support)
API which can be used to internationalize your PHP applications.
Please see the gettext documentation from your system for a thorough
explanation of these functions.
bindtextdomain
Sets the path for a domain
Description
stringbindtextdomain
stringdomain
stringdirectory
The bindtextdomain function sets the path
for a domain.
bind_textdomain_codeset
Specify the character encoding in which the messages from the
DOMAIN message catalog will be returned
Description
stringbind_textdomain_codeset
stringdomain
stringcodeset
&warn.undocumented.func;
dcgettext
Overrides the domain for a single lookup
Description
stringdcgettext
stringdomain
stringmessage
intcategory
This function allows you to override the current domain for a
single message lookup. It also allows you to specify a
category.
dcngettext
Plural version of dcgettext
Description
stringdcngettext
stringdomain
stringmsgid1
stringmsgid2
intn
intcategory
&warn.undocumented.func;
dgettext
Override the current domain
Description
stringdgettext
stringdomain
stringmessage
The dgettext function allows you to override
the current domain for a single message lookup.
dngettext
Plural version of dgettext
Description
stringdngettext
stringdomain
stringmsgid1
stringmsgid2
intn
&warn.undocumented.func;
gettext
Lookup a message in the current domain
Description
stringgettext
stringmessage
This function returns a translated string if one is found in the
translation table, or the submitted message if not found. You may
use an underscore character as an alias to this function.
gettext-check
]]>
ngettext
Plural version of gettext
Description
stringngettext
stringmsgid1
stringmsgid2
intn
&warn.undocumented.func;
textdomain
Sets the default domain
Description
stringtextdomain
stringtext_domain
This function sets the domain to search within when calls are
made to gettext, usually the named after an
application. The previous default domain is returned.
Call it with &null; as parameter to get the current setting without
changing it.