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.
textdomain
(PHP 4, PHP 5)
textdomain — Sets the default domain
설명
string textdomain
( string $text_domain
)
This function sets the domain to search within when calls are made to gettext(), usually the named after an application.
인수
- text_domain
-
The new message domain, or NULL to get the current setting without changing it
반환값
If successful, this function returns the current message domain, after possibly changing it.
textdomain
ipso at snappymail dot ca
28-Apr-2007 03:26
28-Apr-2007 03:26
vke at onebox dot com
15-Mar-2002 11:07
15-Mar-2002 11:07
A domain is something like a word dictionary which is acting like a translation table.
