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 — Setzt die Standarddomain
Beschreibung
string textdomain
( string $text_domain
)
Diese Funktion setzt die Domain, in der bei einem gettext()-Aufruf gesucht werden soll; gewöhnlich wird die Domain nach einer Applikation benannt.
Parameter-Liste
- text_domain
-
Die neue Text-Domain oder NULL, wenn die aktuellen Werte ohne Veränderung übernommen werden sollen.
Rückgabewerte
Im Erfolgsfall gibt die Funktion die aktuelle Text-Domain zurück, nachdem sie möglicherweise verändert wurde.
textdomain
ipso at snappymail dot ca
27-Apr-2007 08:26
27-Apr-2007 08:26
vke at onebox dot com
15-Mar-2002 03:07
15-Mar-2002 03:07
A domain is something like a word dictionary which is acting like a translation table.
