PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

i18n> <Gettext Functions
Last updated: Fri, 22 Aug 2008

view this page in

textdomain

(PHP 4, PHP 5)

textdomainEstablece el dominio predeterminado

Descripción

string textdomain ( string $dominio_de_texto )

Esta función establece el dominio para las búsquedas realizadas mediante gettext(), usualmente este dominio es llamado en base al nombre de la aplicación.

Lista de parámetros

dominio_de_texto

El nuevo dominio de mensajes, o NULL para obtener el valor actual sin cambiarlo

Valores retornados

Si tiene éxito, esta función devuelve el dominio de mensajes actual, después de tal vez haberlo cambiado.



add a note add a note User Contributed Notes
textdomain
ipso at snappymail dot ca
27-Apr-2007 08:26
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 at onebox dot com
15-Mar-2002 03:07
A domain is something like a word dictionary which is acting like a translation table.

i18n> <Gettext Functions
Last updated: Fri, 22 Aug 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites