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 — Fixe le domaine par défaut
Description
string textdomain
( string $text_domain
)
textdomain() fixe le domaine text_domain à utiliser lors des recherches avec gettext(). Ce domaine dépend généralement de l'application.
Liste de paramètres
- text_domain
-
Le nouveau domaine des messages, ou NULL pour récupérer la configuration courante sans la modifier.
Valeurs de retour
Cette fonction retourne le message courant du domaine en cas de succès, après une possible modification.
textdomain
ipso at snappymail dot ca
27-Apr-2007 06:26
27-Apr-2007 06:26
vke at onebox dot com
15-Mar-2002 02:07
15-Mar-2002 02:07
A domain is something like a word dictionary which is acting like a translation table.
