<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- splitted from ./en/functions/gettext.xml, last change in rev 1.2 -->
<refentry xml:id="function.textdomain" xmlns="http://docbook.org/ns/docbook">
 <refnamediv>
  <refname>textdomain</refname>
  <refpurpose>Sets the default domain</refpurpose>
 </refnamediv>
 <refsect1 role="description">
  &reftitle.description;
  <methodsynopsis>
   <type>string</type><methodname>textdomain</methodname>
   <methodparam><type class="union"><type>string</type><type>null</type></type><parameter>domain</parameter></methodparam>
  </methodsynopsis>
  <para>
   This function sets the domain to search within when calls are
   made to <function>gettext</function>, usually the named after an
   application.
  </para>
 </refsect1>

 <refsect1 role="parameters">
  &reftitle.parameters;
  <para>
   <variablelist>
    <varlistentry>
     <term><parameter>domain</parameter></term>
     <listitem>
      <para>
       The new message domain, or &null; to get the current setting without
       changing it
      </para>
     </listitem>
    </varlistentry>
   </variablelist>
  </para>
 </refsect1>

 <refsect1 role="returnvalues">
  &reftitle.returnvalues;
  <para>
   If successful, this function returns the current message
   domain, after possibly changing it.
  </para>
 </refsect1>

 <refsect1 role="notes">
  &reftitle.notes;
  <note>
   <para>
    The <function>textdomain</function> information is maintained per process,
    not per thread.
   </para>
  </note>
 </refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
