Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : Gettext Functions : textdomain

textdomain

Sets the default domain (PHP 4, PHP 5)
string textdomain ( string text_domain )


Code Examples / Notes » textdomain

bharathi

textdomain("myApp");
// myApp is MO file Name


ipso

I was having very strange issues with gettext only setting the locale once per Apache process (non-threaded), until I found this bug report:
http://bugs.php.net/bug.php?id=21965
It almost seemed like gettext was caching the data once per process, but in fact calling textdomain() fixed the issue for me.


vke

A domain is something like a word dictionary which is acting like a translation table.

Change Language


Follow Navioo On Twitter
bind_textdomain_codeset
bindtextdomain
dcgettext
dcngettext
dgettext
dngettext
gettext
ngettext
textdomain
eXTReMe Tracker