Sets the default domain
(PHP 4, PHP 5)
Code Examples / Notes » textdomain
// myApp is MO file Name
I was having very strange issues with gettext only setting the locale once per Apache process (non-threaded), until I found this bug report:
It almost seemed like gettext was caching the data once per process, but in fact calling textdomain() fixed the issue for me.
A domain is something like a word dictionary which is acting like a translation table.