Method Locale.Gettext.bindtextdomain()
- Method
bindtextdomain
stringbindtextdomain(string|voiddomainname,string|voiddirname)- Description
Binds the path predicate for a message
domainnamedomainname to the directory name specified bydirname.If
domainnameis a non-empty string and has not been bound previously, bindtextdomain() bindsdomainnamewithdirname.If
domainnameis a non-empty string and has been bound previously, bindtextdomain() replaces the old binding withdirname.The
dirnameargument can be an absolute or relative pathname being resolved when gettext(), dgettext() or dcgettext() are called.If
domainnameis zero or an empty string, bindtextdomain() returns 0.User defined domain names cannot begin with the string
"SYS_". Domain names beginning with this string are reserved for system use.- Returns
The return value from bindtextdomain() is a string containing
dirnameor the directory binding associated withdomainnameifdirnameis unspecified. If no binding is found, the default locale path is returned. Ifdomainnameis unspecified or is an empty string, bindtextdomain() takes no action and returns a 0.- See also