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

« back to all changes in this revision

Viewing changes to help/sl/calendar.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="calendar" xml:lang="sl">
 
3
  <info>
 
4
    <link type="guide" xref="index#dialogs"/>
 
5
    <desc>Use the <cmd>--calendar</cmd> option.</desc>
 
6
  </info>
 
7
  <title>Calendar Dialog</title>
 
8
    <p>
 
9
        Use the <cmd>--calendar</cmd> option to create a calendar dialog. Zenity returns the selected date to standard output. If no date is specified on the command line, the dialog uses the current date.
 
10
    </p>
 
11
    <p>
 
12
        The calendar dialog supports the following options:
 
13
    </p>
 
14
 
 
15
    <terms>
 
16
 
 
17
      <item>
 
18
        <title><cmd>--text</cmd>=<var>text</var></title>
 
19
        <p>Specifies the text that is displayed in the calendar dialog.</p>
 
20
      </item>
 
21
        
 
22
      <item>
 
23
        <title><cmd>--day</cmd>=<var>day</var></title>
 
24
        <p>Specifies the day that is selected in the calendar dialog. day must be a number between 1 and 31 inclusive.</p>
 
25
      </item>
 
26
 
 
27
      <item>
 
28
        <title><cmd>--month</cmd>=<var>month</var></title>
 
29
        <p>Specifies the month that is selected in the calendar dialog. month must be a number between 1 and 12 inclusive.</p>
 
30
      </item>
 
31
 
 
32
      <item>
 
33
        <title><cmd>--year</cmd>=<var>year</var></title>
 
34
        <p>Specifies the year that is selected in the calendar dialog.</p>
 
35
      </item>
 
36
 
 
37
      <item>
 
38
        <title><cmd>--date-format</cmd>=<var>format</var></title>
 
39
        <p>Specifies the format that is returned from the calendar dialog after date selection. The default format depends on your locale. Format must be a format that is acceptable to the <cmd>strftime</cmd> function, for example <var>%A %d/%m/%y</var>.</p>
 
40
      </item>
 
41
 
 
42
    </terms>
 
43
 
 
44
    <p>
 
45
      The following example script shows how to create a calendar dialog:
 
46
    </p>
 
47
 
 
48
<code>
 
49
#!/bin/sh
 
50
 
 
51
 
 
52
if zenity --calendar \
 
53
--title="Select a Date" \
 
54
--text="Click on a date to select that date." \
 
55
--day=10 --month=8 --year=2004
 
56
  then echo $?
 
57
  else echo "No date selected"
 
58
fi
 
59
</code>
 
60
 
 
61
 
 
62
    <figure id="zenity-calendar-screenshot">
 
63
      <title>Calendar Dialog Example</title>
 
64
      <desc>Zenity calendar dialog example</desc>
 
65
      <media type="image" mime="image/png" src="figures/zenity-calendar-screenshot.png"/>
 
66
   </figure>
 
67
</page>