<?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 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.dgettext.php',
    1 => 'dgettext',
    2 => 'Remplace le domaine courant',
  ),
  'up' => 
  array (
    0 => 'ref.gettext.php',
    1 => 'Fonctions Gettext',
  ),
  'prev' => 
  array (
    0 => 'function.dcngettext.php',
    1 => 'dcngettext',
  ),
  'next' => 
  array (
    0 => 'function.dngettext.php',
    1 => 'dngettext',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/gettext/functions/dgettext.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.dgettext" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">dgettext</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">dgettext</span> &mdash; <span class="dc-title">Remplace le domaine courant</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.dgettext-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>dgettext</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"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$message</code></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>dgettext()</strong></span> remplace le domaine courant
   <code class="parameter">domain</code> pour une recherche simple dans 
   <code class="parameter">message</code>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.dgettext-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">domain</code></dt>
     <dd>
      <p class="para">
       Le domaine
      </p>
     </dd>
    
    
     <dt><code class="parameter">message</code></dt>
     <dd>
      <p class="para">
       Le message
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.dgettext-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Une <a href="language.types.string.php" class="link">chaîne de caractères</a> en cas de succès.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.dgettext-errors">
  <h3 class="title">Erreurs / Exceptions</h3>
  <p class="simpara">
    Lève une <span class="exceptionname"><a href="class.valueerror.php" class="exceptionname">ValueError</a></span> si <code class="parameter">domain</code>
    est une <span class="type"><a href="language.types.string.php" class="type string">string</a></span> vide.
   </p>
  </div>


  <div class="refsect1 changelog" id="refsect1-function.dgettext-changelog">
   <h3 class="title">Historique</h3>
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Version</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.4.0</td>
       <td>
        Lève désormais une <span class="exceptionname"><a href="class.valueerror.php" class="exceptionname">ValueError</a></span> si <code class="parameter">domain</code>
        est une <span class="type"><a href="language.types.string.php" class="type string">string</a></span> vide.
       </td>
      </tr>

     </tbody>
    
   </table>

  </div>


  <div class="refsect1 seealso" id="refsect1-function.dgettext-seealso">
   <h3 class="title">Voir aussi</h3>
   <p class="para">
    <ul class="simplelist">
     <li><span class="function"><a href="function.gettext.php" class="function" rel="rdfs-seeAlso">gettext()</a> - Recherche un message dans le domaine courant</span></li>
    </ul>
   </p>
  </div>

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