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

search for in the

GMP Functions> <ngettext
Last updated: Sat, 24 Mar 2007

view this page in

textdomain

(PHP 4, PHP 5)

textdomain — Nastavit výchozí doménu

Popis

string textdomain ( string $text_domain )

Tato funkce nastaví doménu pro vyhledávání při volání funkce gettext(), obvykle pojmenovanou podle aplikace. Vrátí předchozí výchozí doménu. Při volání bez argumentů vrátí současné nastavení, aniž by jej měnila.



add a note add a note User Contributed Notes
textdomain
ipso at snappymail dot ca
27-Apr-2007 11: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 06:07
A domain is something like a word dictionary which is acting like a translation table.

GMP Functions> <ngettext
Last updated: Sat, 24 Mar 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites