didou           Tue Oct 21 04:13:39 2003 EDT

  Modified files:              
    /phpdoc/en/reference/gettext/functions      bindtextdomain.xml 
  Log:
  adding the return part and a little example
  
Index: phpdoc/en/reference/gettext/functions/bindtextdomain.xml
diff -u phpdoc/en/reference/gettext/functions/bindtextdomain.xml:1.2 
phpdoc/en/reference/gettext/functions/bindtextdomain.xml:1.3
--- phpdoc/en/reference/gettext/functions/bindtextdomain.xml:1.2        Wed Apr 17 
02:38:20 2002
+++ phpdoc/en/reference/gettext/functions/bindtextdomain.xml    Tue Oct 21 04:13:39 
2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/gettext.xml, last change in rev 1.2 -->
   <refentry id="function.bindtextdomain">
    <refnamediv>
@@ -15,7 +15,31 @@
      </methodsynopsis>
     <para>
      The <function>bindtextdomain</function> function sets the path
-     for a domain.
+     for a domain. It returns the full pathname for the domain currently being
+     set.
+    </para>
+    <para>
+     <example>
+      <title><function>bindtextdomain</function> example</title>
+      <programlisting role="php">
+<![CDATA[
+<?php
+
+$domain = 'myapp';
+echo bindtextdomain($domain, '/usr/share/myapp/locale'); 
+
+?>
+]]>
+      </programlisting>
+      <para>
+       This will output :
+      </para>
+      <screen>
+<![CDATA[
+/usr/share/myapp/locale
+]]>
+      </screen>
+     </example>
     </para>
    </refsect1>
   </refentry>

Reply via email to