note 63769 added to function.dgettext

From: Date: Thu, 30 Mar 2006 10:42:56 +0000
Subject: note 63769 added to function.dgettext
Groups: php.notes 
Request: Send a blank email to php-notes+get-107016@lists.php.net to get a copy of this message
While using this function, remember to call bindtextdomain for as many domains as you want to use in your application. For example, if I have module1 and module2 as 2 separate domains in the same application, you can do the following: bindtextdomain("module1", "//path/to/my/locale/folder"); bindtextdomain("module2", "//path/to/my/locale/folder"); textdomain("module1"); echo _("Label1"); // this call will get the message from module1 echo dgettext("module2", "Label1"); // this call will get the message from module2 === Viral Shah ---- Server IP: 203.199.124.111 Probable Submitter: 125.22.72.244 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.dgettext.php Edit -- http://master.php.net/note/edit/63769 Del: integrated -- http://master.php.net/note/delete/63769/integrated Del: useless -- http://master.php.net/note/delete/63769/useless Del: bad code -- http://master.php.net/note/delete/63769/bad+code Del: spam -- http://master.php.net/note/delete/63769/spam Del: non-english -- http://master.php.net/note/delete/63769/non-english Del: in docs -- http://master.php.net/note/delete/63769/in+docs Del: other reasons-- http://master.php.net/note/delete/63769 Reject -- http://master.php.net/note/reject/63769 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#107016) next »