~ubuntu-branches/ubuntu/precise/zenity/precise-updates

« back to all changes in this revision

Viewing changes to help/eu/text.page

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-03-29 14:50:15 UTC
  • mfrom: (1.1.45)
  • Revision ID: package-import@ubuntu.com-20120329145015-p6jkb44cf19r2qyi
Tags: 3.4.0-0ubuntu1
* New upstream release:
  - Add support for lists and trees with --forms
  - Fix warning reading list from stdin
* debian/zenity-common.install:
  - Doesn't install omf files anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<page xmlns="http://projectmallard.org/1.0/" type="topic" id="text" xml:lang="eu">
 
3
  <info>
 
4
    <link type="guide" xref="index#dialogs"/>
 
5
    <desc>Use the <cmd>--text-info</cmd> option.</desc>
 
6
  </info>
 
7
  <title>Testu-informazioaren elkarrizketa-koadroa</title>
 
8
    <p>
 
9
        Use the <cmd>--text-info</cmd> option to create a text information dialog. 
 
10
    </p>
 
11
        
 
12
    <p>Testu-informazioaren elkarrizketa-koadroak aukera hauek onartzen ditu:</p>
 
13
 
 
14
    <terms>
 
15
 
 
16
      <item>
 
17
        <title><cmd>--filename</cmd>=<var>filename</var></title>
 
18
        <p>Testu-informazioaren elkarrizketa-koadroan kargaturiko fitxategia zehazten du.</p>
 
19
      </item>
 
20
 
 
21
      <item>
 
22
        <title><cmd>--editable</cmd></title>
 
23
        <p>Allows the displayed text to be edited. The edited text is returned to standard output when the dialog is closed.</p>
 
24
      </item>
 
25
 
 
26
      <item>
 
27
        <title><cmd>--font</cmd>=<var>FONT</var></title>
 
28
        <p>Specifies the text font.</p>
 
29
      </item>
 
30
 
 
31
      <item>
 
32
        <title><cmd>--checkbox</cmd>=<var>TEXT</var></title>
 
33
        <p>Enable a checkbox for use like a 'I read and accept the terms.'</p>
 
34
      </item>
 
35
 
 
36
      <item>
 
37
        <title><cmd>--html</cmd></title>
 
38
        <p>Enable html support.</p>
 
39
      </item>
 
40
 
 
41
      <item>
 
42
        <title><cmd>--url</cmd>=<var>URL</var></title>
 
43
        <p>Sets an url instead of a file. Only works if you use --html option.</p>
 
44
      </item>
 
45
 
 
46
    </terms>
 
47
 
 
48
    <p>
 
49
      The following example script shows how to create a text information dialog:
 
50
    </p>
 
51
 
 
52
<code>
 
53
#!/bin/sh
 
54
 
 
55
# You must place file "COPYING" in same folder of this script.
 
56
FILE=`dirname $0`/COPYING
 
57
 
 
58
zenity --text-info \
 
59
       --title="License" \
 
60
       --filename=$FILE \
 
61
       --checkbox="I read and accept the terms."
 
62
 
 
63
case $? in
 
64
    0)
 
65
        echo "Start installation!"
 
66
        # next step
 
67
        ;;
 
68
    1)
 
69
        echo "Stop installation!"
 
70
        ;;
 
71
    -1)
 
72
        echo "An unexpected error has occurred."
 
73
        ;;
 
74
esac
 
75
</code>
 
76
 
 
77
    <figure id="zenity-text-screenshot">
 
78
      <title>Testu-informazioaren elkarrizketa-koadroaren adibidea</title>
 
79
      <desc><app>Zenity</app> text information dialog example</desc>
 
80
      <media type="image" mime="image/png" src="figures/zenity-text-screenshot.png"/>
 
81
    </figure>
 
82
</page>