<?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.bindtextdomain.php',
    1 => 'bindtextdomain',
    2 => 'Setzt oder liefert den Pfad f&uuml;r eine Domain',
  ),
  'up' => 
  array (
    0 => 'ref.gettext.php',
    1 => 'Gettext-Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.bind-textdomain-codeset.php',
    1 => 'bind_textdomain_codeset',
  ),
  'next' => 
  array (
    0 => 'function.dcgettext.php',
    1 => 'dcgettext',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/gettext/functions/bindtextdomain.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.bindtextdomain" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">bindtextdomain</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">bindtextdomain</span> &mdash; <span class="dc-title">Setzt oder liefert den Pfad für eine Domain</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.bindtextdomain-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>bindtextdomain</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$domain</code></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">$directory</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Die Funktion <span class="function"><strong>bindtextdomain()</strong></span> setzt den Pfad für eine
   Domain oder gibt diesen zurück.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.bindtextdomain-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">domain</code></dt>
     <dd>
      <p class="para">
       Die Domain
      </p>
     </dd>
    
    
     <dt><code class="parameter">directory</code></dt>
     <dd>
      <p class="para">
       Der Verzeichnispfad.
       Ein leerer String bedeutet das aktuelle Verzeichnis.
       Falls <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>, wird das aktuell eingestellte
       Verzeichnis zurückgegeben.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.bindtextdomain-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Der vollständige Pfadname, der gerade für <code class="parameter">domain</code>
   gesetzt wird. Bei einem Fehler wird <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> zurückgegeben.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.bindtextdomain-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>
       <code class="parameter">directory</code> ist nun optional;
       zuvor musste der Parameter immer angegeben werden.
      </td>
     </tr>

     <tr>
      <td>8.0.3</td>
      <td>
       <code class="parameter">directory</code> ist nun ein Nullable-Typ. Zuvor war es
       nicht möglich, das aktuell eingestellte Verzeichnis abzurufen.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.bindtextdomain-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Beispiel #1 <span class="function"><strong>bindtextdomain()</strong></span>-Beispiel</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br />$domain </span><span style="color: #007700">= </span><span style="color: #DD0000">'MeineAnwendung'</span><span style="color: #007700">;<br />echo </span><span style="color: #0000BB">bindtextdomain</span><span style="color: #007700">(</span><span style="color: #0000BB">$domain</span><span style="color: #007700">, </span><span style="color: #DD0000">'/usr/share/MeineAnwendung/locale'</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>Das oben gezeigte Beispiel erzeugt folgende Ausgabe:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">/usr/share/MeineAnwendung/locale</pre>
</div>
    </div>
   </div>
  </p>
 </div>


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


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