<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.gettext.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.textdomain.php',
    1 => 'textdomain',
    2 => 'Setzt die Standarddomain',
  ),
  'up' => 
  array (
    0 => 'ref.gettext.php',
    1 => 'Gettext-Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.ngettext.php',
    1 => 'ngettext',
  ),
  'next' => 
  array (
    0 => 'book.iconv.php',
    1 => 'iconv',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/gettext/functions/textdomain.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.textdomain" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">textdomain</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">textdomain</span> &mdash; <span class="dc-title">Setzt die Standarddomain</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.textdomain-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>textdomain</strong></span>(<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$domain</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   Diese Funktion setzt die Domain, in der bei einem
   <span class="function"><a href="function.gettext.php" class="function">gettext()</a></span>-Aufruf gesucht werden soll; gewöhnlich wird
   die Domain nach einer Anwendung benannt.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.textdomain-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">domain</code></dt>
     <dd>
      <p class="para">
       Die neue Meldungs-Domain oder <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>, wenn die aktuellen Werte ohne
       Veränderung übernommen werden sollen.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.textdomain-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Im Erfolgsfall gibt die Funktion die aktuelle Meldungs-Domain zurück,
   nachdem sie möglicherweise verändert wurde.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.textdomain-errors">
  <h3 class="title">Fehler/Exceptions</h3>
  <p class="simpara">
   Wenn <code class="parameter">domain</code> der leere <span class="type"><a href="language.types.string.php" class="type String">String</a></span> ist, wird
   ein <span class="exceptionname"><a href="class.valueerror.php" class="exceptionname">ValueError</a></span> geworfen.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.textdomain-changelog">
  <h3 class="title">Changelog</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Beschreibung</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.4.0</td>
      <td>
       Wirft nun einen <span class="exceptionname"><a href="class.valueerror.php" class="exceptionname">ValueError</a></span>, wenn
       <code class="parameter">domain</code> der leere <span class="type"><a href="language.types.string.php" class="type String">String</a></span> ist.
      </td>
     </tr>

     <tr>
      <td>8.4.0</td>
      <td>
       <code class="parameter">domain</code> ist nun optional;
       zuvor musste der Parameter immer angegeben werden.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 notes" id="refsect1-function.textdomain-notes">
  <h3 class="title">Anmerkungen</h3>
  <blockquote class="note"><p><strong class="note">Hinweis</strong>: 
   <p class="para">
    Die <span class="function"><strong>textdomain()</strong></span>-Informationen werden pro Prozess
    verwaltet, nicht pro Thread.
   </p>
  </p></blockquote>
 </div>


</div><?php manual_footer($setup); ?>