<?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 => 'es',
  ),
  'this' => 
  array (
    0 => 'function.textdomain.php',
    1 => 'textdomain',
    2 => 'Define el dominio por defecto',
  ),
  'up' => 
  array (
    0 => 'ref.gettext.php',
    1 => 'Funciones de Gettext',
  ),
  'prev' => 
  array (
    0 => 'function.ngettext.php',
    1 => 'ngettext',
  ),
  'next' => 
  array (
    0 => 'book.iconv.php',
    1 => 'iconv',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'es',
    '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">Define el dominio por defecto</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.textdomain-description">
  <h3 class="title">Descripción</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">
   Esta función define el dominio de búsqueda a utilizar durante las llamadas
   a <span class="function"><a href="function.gettext.php" class="function">gettext()</a></span>. Este
   dominio depende generalmente de la aplicación.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.textdomain-parameters">
  <h3 class="title">Parámetros</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">domain</code></dt>
     <dd>
      <p class="para">
       El nuevo dominio de mensajes, o <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> para recuperar
       la configuración actual sin modificaciones.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.textdomain-returnvalues">
  <h3 class="title">Valores devueltos</h3>
  <p class="para">
   Esta función devuelve el mensaje actual del dominio en caso de éxito,
   después de una posible modificación.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.textdomain-errors">
  <h3 class="title">Errores/Excepciones</h3>
  <p class="simpara">
    Genera una <span class="exceptionname"><a href="class.valueerror.php" class="exceptionname">ValueError</a></span> si <code class="parameter">domain</code>
    es un <span class="type"><a href="language.types.string.php" class="type string">string</a></span> vacío.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.textdomain-changelog">
  <h3 class="title">Historial de cambios</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Versión</th>
      <th>Descripción</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.4.0</td>
      <td>
       Genera ahora una <span class="exceptionname"><a href="class.valueerror.php" class="exceptionname">ValueError</a></span> si <code class="parameter">domain</code>
       es un <span class="type"><a href="language.types.string.php" class="type string">string</a></span> vacío.
      </td>
     </tr>

     <tr>
      <td>8.4.0</td>
      <td>
       <code class="parameter">domain</code> ahora es opcional.
       Anteriormente, este argumento debía especificarse siempre.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 notes" id="refsect1-function.textdomain-notes">
  <h3 class="title">Notas</h3>
  <blockquote class="note"><p><strong class="note">Nota</strong>: 
   <p class="para">
    La información de <span class="function"><strong>textdomain()</strong></span> se mantiene por proceso,
    y no por hilo.
   </p>
  </p></blockquote>
 </div>


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