note 74902 added to ref.gettext
| From: | sujithfem at gmail dot com | Date: | Thu, 03 May 2007 12:52:56 +0000 |
| Subject: | note 74902 added to ref.gettext | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-126139@lists.php.net to get a copy of this message | ||
i used the following code but i can't get the translated text please let me know the exact
code
<?php
$language = "nl_NL";
putenv("LANGUAGE=$language");
putenv("LANG=$language");
setlocale(LC_ALL, $language);
bindtextdomain('website', 'locale/');
bind_textdomain_codeset('website', 'utf-8');
textdomain('website');
echo gettext(""The fear of the Lord is the beginning of wisdom"");
----
Server IP: 203.199.114.50
Probable Submitter: 125.17.19.1 (proxied: 172.22.3.40)
----
Manual Page -- http://www.php.net/manual/en/ref.gettext.php
Edit -- https://master.php.net/note/edit/74902
Del: integrated -- https://master.php.net/note/delete/74902/integrated
Del: useless -- https://master.php.net/note/delete/74902/useless
Del: bad code -- https://master.php.net/note/delete/74902/bad+code
Del: spam -- https://master.php.net/note/delete/74902/spam
Del: non-english -- https://master.php.net/note/delete/74902/non-english
Del: in docs -- https://master.php.net/note/delete/74902/in+docs
Del: other reasons-- https://master.php.net/note/delete/74902
Reject -- https://master.php.net/note/reject/74902
Search -- https://master.php.net/manage/user-notes.php