<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="topic" id="text" lang="gl">
  <info>
    <link type="guide" xref="index#dialogs"/>
    <desc>Use a opción <cmd>--text-info</cmd>.</desc>
    <license xmlns="http://projectmallard.org/1.0/" href="https://www.gnu.org/licenses/old-licenses/fdl-1.1.txt">

  <p>This work is licensed under a
  <link href="https://www.gnu.org/licenses/old-licenses/fdl-1.1.txt">GNU Free
  Documentation License Version 1.1</link> or any later version.</p>

	<p>
	  Permission is granted to copy, distribute and/or modify this
	  document under the terms of the GNU Free Documentation
	  License (GFDL), Version 1.1 or any later version published
	  by the Free Software Foundation with no Invariant Sections,
	  no Front-Cover Texts, and no Back-Cover Texts.  You can find
	  a copy of the GFDL at this
	  <link href="https://www.gnu.org/licenses/old-licenses/fdl-1.1.txt">link</link>.
         </p>
         <p>Este manual é parte da colección de manuais de GNOME distribuidos baixo a licenza GFDL. Se quere distribuír este manual de forma separada da colección pode facelo engadindo unha copia da licenza xunto ao manual, como se describe na sección 6 da licenza.</p>

	<p>Moitos dos nomes usados polas empresas para distinguir os seus produtos e servizos son declaradas como marcas rexistradas. Onde esos nomes aparecen na calquera documentación de GNOME, e os membros do Proxecto de documentación de GNOME fanse saber desas marcas rexistradas, polo tanto os nomes están en maiúsculas ou a letra inicial en maiúsculas.</p>

	<p>
	  DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT ARE PROVIDED
	  UNDER  THE TERMS OF THE GNU FREE DOCUMENTATION LICENSE
	  WITH THE FURTHER UNDERSTANDING THAT:
	</p>
	<list>
		<item>
		  <p>DOCUMENT IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE DOCUMENT OR MODIFIED VERSION OF THE DOCUMENT IS FREE OF DEFECTS MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY, ACCURACY, AND PERFORMANCE OF THE DOCUMENT OR MODIFIED VERSION OF THE DOCUMENT IS WITH YOU. SHOULD ANY DOCUMENT OR MODIFIED VERSION PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL WRITER, AUTHOR OR ANY CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY DOCUMENT OR MODIFIED VERSION OF THE DOCUMENT IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER; AND</p>
		</item>
		<item>
		  <p>UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER IN TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL THE AUTHOR, INITIAL WRITER, ANY CONTRIBUTOR, OR ANY DISTRIBUTOR OF THE DOCUMENT OR MODIFIED VERSION OF THE DOCUMENT, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER DAMAGES OR LOSSES ARISING OUT OF OR RELATING TO USE OF THE DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES.</p>
		</item>
	  </list>
</license>
  <credit type="translator copyright"><name>Fran Dieguez</name><email>frandieguez@gnome.org</email><years>2011-2012.</years></credit></info>
  <title>Diálogo para o texto de información</title>
    <p>Use a opción <cmd>--warning</cmd> para crear un diálogo de pregunta.</p>
	
    <p>O diálogo de texto de información admite as seguintes opcións:</p>

    <terms>

      <item>
        <title><cmd>--filename</cmd>=<var>nome_de_ficheiro</var></title>
	<p>Especifica un ficheiro que se carga no diálogo de texto de información.</p>
      </item>

      <item>
        <title><cmd>--editable</cmd></title>
        <p>Permite que o texto mostrado sexa editado. O texto editado devólvese pola saída estándar cando o diálogo se pecha.</p>
      </item>

      <item>
        <title><cmd>--font</cmd>=<var>TIPO_DE_LETRA</var></title>
	<p>Especifica o tipo de letra do texto.</p>
      </item>

      <item>
        <title><cmd>--checkbox</cmd>=<var>TEXTO</var></title>
	<p>Activar unha casilla para usala como «Lin e acepto os termos.»</p>
      </item>

      <item>
        <title><cmd>--html</cmd></title>
        <p>Activar a compatibilidade de HTML.</p>
      </item>

      <item>
        <title><cmd>--url</cmd>=<var>URL</var></title>
	<p>Configura unha URL no lugar dun ficheiro. Só funciona se usa a opción «--html»</p>
      </item>

    </terms>

    <p>O seguinte script de exemplo mostra como crear un diálogo de selección de ficheiro:</p>

<code>
#!/bin/sh

# Debe copiar o archivo "COPYING" no mesmo cartafol que este script.
FILE=`dirname $0`/COPYING

zenity --text-info \
       --title="Licenza" \
       --filename=$FILE \
       --checkbox="Lin e acepto os termos."

case $? in
    0)
        echo "Comenzar instalación"
	# seguinte paso
	;;
    1)
        echo "Deter instalación"
	;;
    -1)
        echo "Produciuse un error non esperado."
	;;
esac
</code>

    <figure>
      <title>Exemplo do diálogo de texto de información</title>
      <desc>Exemplo do diálogo de texto de información de <app>Zenity</app></desc>
      <media type="image" mime="image/png" src="figures/zenity-text-screenshot.png"/>
    </figure>
</page>
