derick          Fri May 24 14:55:24 2002 EDT

  Modified files:              
    /phpdoc/en/reference/gettext/functions      gettext.xml 
  Log:
  - Fix example to use setlocale (fixes bug #17304)
  
  
Index: phpdoc/en/reference/gettext/functions/gettext.xml
diff -u phpdoc/en/reference/gettext/functions/gettext.xml:1.3 
phpdoc/en/reference/gettext/functions/gettext.xml:1.4
--- phpdoc/en/reference/gettext/functions/gettext.xml:1.3       Thu May  9 19:43:59 
2002
+++ phpdoc/en/reference/gettext/functions/gettext.xml   Fri May 24 14:55:24 2002
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 <!-- splitted from ./en/functions/gettext.xml, last change in rev 1.2 -->
   <refentry id="function.gettext">
    <refnamediv>
@@ -23,7 +23,7 @@
 <![CDATA[
 <?php
 // Set language to German
-putenv("LANG=de");
+setlocale(LC_ALL, 'de');
 
 // Specify location of translation tables
 bindtextdomain("myPHPApp", "./locale");


Reply via email to