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

search for in the

i18n> <ngettext
Last updated: Fri, 13 Nov 2009

view this page in

textdomain

(PHP 4, PHP 5)

textdomainデフォルトドメインを設定する

説明

string textdomain ( string $text_domain )

この関数は、gettext() がコールされた際に検索を 行うドメインを設定します。このドメインは、通常はアプリケーション名から 付けられます。

パラメータ

text_domain

新しいメッセージドメイン。NULL を指定すると、現在の設定をそのまま 取得し、変更しません。

返り値

成功すると、この関数はドメインを変更した後に現在のメッセージドメインを 返します。



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

i18n> <ngettext
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites