mirror of
https://github.com/php/doc-es.git
synced 2026-03-26 16:32:13 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@310485 c90b9560-bf6c-de11-be94-00142212c4b1
310 lines
12 KiB
XML
310 lines
12 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: jpberdejo Status: ready -->
|
|
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.nl-langinfo">
|
|
<refnamediv>
|
|
<refname>nl_langinfo</refname>
|
|
<refpurpose>Consulta información sobre el idioma y la configuración regional</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>nl_langinfo</methodname>
|
|
<methodparam><type>int</type><parameter>item</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>nl_langinfo</function> se utiliza para acceder elementos individuales de
|
|
las categorías de la configuración regional. A diferencia de <function>localeconv</function>, que
|
|
devuelve todos los elementos, <function>nl_langinfo</function> permite
|
|
seleccionar cualquier elemento específico.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>item</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
<parameter>item</parameter> puede ser un valor integer del elemento o el
|
|
nombre de la constante del elemento. La siguiente es una lista de los nombres de las constantes
|
|
que pueden ser utilizadas para <parameter>item</parameter> y su descripción.
|
|
Algunas de estas constantes pueden no estar definidas o no tienen valor para ciertas
|
|
configuraciones regionales.
|
|
<table>
|
|
<title>Constantes de nl_langinfo</title>
|
|
<tgroup cols="2">
|
|
<colspec colname="c1" />
|
|
<colspec colname="c2" />
|
|
<thead>
|
|
<row>
|
|
<entry>Constante</entry>
|
|
<entry>Descripción</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry namest="c1" nameend="c2" align="center"><emphasis>Constantes de la Categoría LC_TIME</emphasis></entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>ABDAY_(1-7)</constant></entry>
|
|
<entry>Nombre abreviado del día n-ésimo de la semana.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>DAY_(1-7)</constant></entry>
|
|
<entry>Nombre del día n-ésimo de la semana (DAY_1 = domingo).</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>ABMON_(1-12)</constant></entry>
|
|
<entry>Nombre abreviado del mes n-ésimo del año.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>MON_(1-12)</constant></entry>
|
|
<entry>Nombre del mes n-ésimo del año.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>AM_STR</constant></entry>
|
|
<entry>String para ante meridiano.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>PM_STR</constant></entry>
|
|
<entry>String para post meridiano.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>D_T_FMT</constant></entry>
|
|
<entry>String que puede ser usado como el string de formato de <function>strftime</function> para representar la hora y fecha.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>D_FMT</constant></entry>
|
|
<entry>String que puede ser usado como el string de formato de <function>strftime</function> para representar la fecha.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>T_FMT</constant></entry>
|
|
<entry>String que puede ser usado como el string de formato de <function>strftime</function> para representar la hora.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>T_FMT_AMPM</constant></entry>
|
|
<entry>String que puede ser usado como el string de formato de <function>strftime</function> para representar la hora en formato de 12 horas con el ante/post meridiano.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>ERA</constant></entry>
|
|
<entry>Era alterna.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>ERA_YEAR</constant></entry>
|
|
<entry>Año en formato de era alterna.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>ERA_D_T_FMT</constant></entry>
|
|
<entry>Fecha y hora en formato de era alterna (el string se puede utilizar en <function>strftime</function>).</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>ERA_D_FMT</constant></entry>
|
|
<entry>Fecha en formato de era alterna (el string se puede utilizar en <function>strftime</function>).</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>ERA_T_FMT</constant></entry>
|
|
<entry>Hora en formato de era alterna (el string se puede utilizar en <function>strftime</function>).</entry>
|
|
</row>
|
|
<row>
|
|
<entry namest="c1" nameend="c2" align="center"><emphasis>Constantes de la Categoría LC_MONETARY</emphasis></entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>INT_CURR_SYMBOL</constant></entry>
|
|
<entry>Símbolo internacional de moneda.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>CURRENCY_SYMBOL</constant></entry>
|
|
<entry>Símbolo local de moneda.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>CRNCYSTR</constant></entry>
|
|
<entry>El mismo valor que <constant>CURRENCY_SYMBOL</constant>.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>MON_DECIMAL_POINT</constant></entry>
|
|
<entry>Caracter de punto decimal.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>MON_THOUSANDS_SEP</constant></entry>
|
|
<entry>Separador de miles (grupos de tres dígitos).</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>MON_GROUPING</constant></entry>
|
|
<entry>Como el elemento <literal>"grouping"</literal>.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>POSITIVE_SIGN</constant></entry>
|
|
<entry>Signo para valores positivos.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>NEGATIVE_SIGN</constant></entry>
|
|
<entry>Signo para valores negativos.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>INT_FRAC_DIGITS</constant></entry>
|
|
<entry>Dígitos fraccionarios internacionales.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>FRAC_DIGITS</constant></entry>
|
|
<entry>Dígitos fraccionarios locales.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>P_CS_PRECEDES</constant></entry>
|
|
<entry>Devuelve 1 si <constant>CURRENCY_SYMBOL</constant> precede a un valor positivo.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>P_SEP_BY_SPACE</constant></entry>
|
|
<entry>Devuelve 1 si un espacio separa <constant>CURRENCY_SYMBOL</constant> de un valor positivo.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>N_CS_PRECEDES</constant></entry>
|
|
<entry>Devuelve 1 si <constant>CURRENCY_SYMBOL</constant> precede a un valor negativo.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>N_SEP_BY_SPACE</constant></entry>
|
|
<entry>Devuelve 1 si un espacio separa <constant>CURRENCY_SYMBOL</constant> de un valor negativo.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>P_SIGN_POSN</constant></entry>
|
|
<entry morerows="1" valign="middle">
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
Devuelve 0 si hay paréntesis alrededor de la cantidad y <constant>CURRENCY_SYMBOL</constant>.
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
Devuelve 1 si el string de signo precede la cantidad y <constant>CURRENCY_SYMBOL</constant>.
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
Devuelve 2 si el string de signo sigue a la cantidad y <constant>CURRENCY_SYMBOL</constant>.
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
Devuelve 3 si el string de signo precede inmediatamente al <constant>CURRENCY_SYMBOL</constant>.
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
Devuelve 4 si el string de signo sigue inmediatamente al <constant>CURRENCY_SYMBOL</constant>.
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>N_SIGN_POSN</constant></entry>
|
|
</row>
|
|
<row>
|
|
<entry namest="c1" nameend="c2" align="center"><emphasis>Constantes de la Categoría LC_NUMERIC</emphasis></entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>DECIMAL_POINT</constant></entry>
|
|
<entry>Caracter de punto decimal.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>RADIXCHAR</constant></entry>
|
|
<entry>Mismo valor que <constant>DECIMAL_POINT</constant>.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>THOUSANDS_SEP</constant></entry>
|
|
<entry>Caracter separador de miles (grupos de tres dígitos).</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>THOUSEP</constant></entry>
|
|
<entry>Mismo valor que <constant>THOUSANDS_SEP</constant>.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>GROUPING</constant></entry>
|
|
<entry></entry>
|
|
</row>
|
|
<row>
|
|
<entry namest="c1" nameend="c2" align="center"><emphasis>Constantes de la Categoría LC_MESSAGES</emphasis></entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>YESEXPR</constant></entry>
|
|
<entry>String de expresión regular para coincidir con la entrada <literal>"yes"</literal>.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>NOEXPR</constant></entry>
|
|
<entry>String de expresión regular para coincidir con la entrada <literal>"no"</literal>.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>YESSTR</constant></entry>
|
|
<entry>String de salida para <literal>"yes"</literal>.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>NOSTR</constant></entry>
|
|
<entry>String de salida para <literal>"no"</literal>.</entry>
|
|
</row>
|
|
<row>
|
|
<entry namest="c1" nameend="c2" align="center"><emphasis>Constantes de la Categoría LC_CTYPE</emphasis></entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>CODESET</constant></entry>
|
|
<entry>Devuelve un string con el nombre de la codificación de caracteres.</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Devuelve el elemento como un string, o &false; si <parameter>item</parameter>
|
|
no es válido.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="notes">
|
|
&reftitle.notes;
|
|
¬e.no-windows;
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>setlocale</function></member>
|
|
<member><function>localeconv</function></member>
|
|
</simplelist>
|
|
</para>
|
|
</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
|
|
-->
|