vrana           Mon Mar 29 09:27:13 2004 EDT

  Modified files:              
    /phpdoc/en/reference/gettext/functions      gettext.xml 
  Log:
  Path to a file with the translation
  
http://cvs.php.net/diff.php/phpdoc/en/reference/gettext/functions/gettext.xml?r1=1.7&r2=1.8&ty=u
Index: phpdoc/en/reference/gettext/functions/gettext.xml
diff -u phpdoc/en/reference/gettext/functions/gettext.xml:1.7 
phpdoc/en/reference/gettext/functions/gettext.xml:1.8
--- phpdoc/en/reference/gettext/functions/gettext.xml:1.7       Fri Mar 26 03:42:19 
2004
+++ phpdoc/en/reference/gettext/functions/gettext.xml   Mon Mar 29 09:27:13 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
 <!-- 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
-setlocale(LC_ALL, 'de');
+setlocale(LC_ALL, 'de_DE');
 
 // Specify location of translation tables
 bindtextdomain("myPHPApp", "./locale");
@@ -31,6 +31,8 @@
 // Choose domain
 textdomain("myPHPApp");
 
+// Translation is looking for in ./locale/de_DE/LC_MESSAGES/myPHPApp.mo now
+
 // Print a test message
 echo gettext("Welcome to My PHP Application");
 

Reply via email to