note 93209 deleted from function.gettext by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 11:16:21 +0000 |
| Subject: | note 93209 deleted from function.gettext by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-197057@lists.php.net to get a copy of this message | ||
Note Submitter: martinalex at tlonstruct.com
----
On Windows (XP Pro SP3) it was not sufficient to set
the locale
<?php setlocale(LC_ALL, "de"); ?>
Prior to that I had to set the variable for the environment
<?php
putenv("LC_ALL=de"); // german
setlocale(LC_ALL, "de");
?>
Without putenv no translation was found!