note 101714 added to function.gettext
| From: | bla at taxistop dot be | Date: | Thu, 06 Jan 2011 14:47:03 +0000 |
| Subject: | note 101714 added to function.gettext | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-175489@lists.php.net to get a copy of this message | ||
For me it is sufficient to call setlocale() with a string like "nl_BE" as the second
parameter, to make gettext() work. Just plain "nl" was not enough.
Ditto when using an environment variable like LANG: "en", "fr", "nl",
"de" are not enough: I have to specify the country, too.
----
Server IP: 217.71.118.186
Probable Submitter: 194.78.138.188
----
Manual Page -- http://www.php.net/manual/en/function.gettext.php
Edit -- https://master.php.net/note/edit/101714
Del: integrated -- https://master.php.net/note/delete/101714/integrated
Del: useless -- https://master.php.net/note/delete/101714/useless
Del: bad code -- https://master.php.net/note/delete/101714/bad+code
Del: spam -- https://master.php.net/note/delete/101714/spam
Del: non-english -- https://master.php.net/note/delete/101714/non-english
Del: in docs -- https://master.php.net/note/delete/101714/in+docs
Del: other reasons-- https://master.php.net/note/delete/101714
Reject -- https://master.php.net/note/reject/101714
Search -- https://master.php.net/manage/user-notes.php