svn: /phpdoc/en/trunk/reference/gettext/functions/ gettext.xml
| From: | Kalle Sommer Nielsen | Date: | Wed, 13 Jan 2010 02:01:09 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/gettext/functions/ gettext.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-5824@lists.php.net to get a copy of this message | ||
kalle Wed, 13 Jan 2010 02:01:09 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=293477
Log:
Fixed bug #47479 (setlocale() ignores translation setting)
Bug: http://bugs.php.net/47479 (To be documented) Again:
setlocale() ignores translation setting
Changed paths:
U phpdoc/en/trunk/reference/gettext/functions/gettext.xml
Modified: phpdoc/en/trunk/reference/gettext/functions/gettext.xml
===================================================================
--- phpdoc/en/trunk/reference/gettext/functions/gettext.xml 2010-01-13 01:48:24 UTC (rev 293476)
+++ phpdoc/en/trunk/reference/gettext/functions/gettext.xml 2010-01-13 02:01:09 UTC (rev 293477)
@@ -50,6 +50,7 @@
<![CDATA[
<?php
// Set language to German
+putenv('LC_ALL=de_DE');
setlocale(LC_ALL, 'de_DE');
// Specify location of translation tables
@@ -79,6 +80,13 @@
You may use the underscore character '_' as an alias to this function.
</para>
</note>
+ <note>
+ <para>
+ Setting a language isnt enough for some systems and the
+ <function>putenv</function> should be used to define the
+ current locale.
+ </para>
+ </note>
</refsect1>
<refsect1 role="seealso">