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

« back to all changes in this revision

Viewing changes to help/ja/password.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="password" xml:lang="ja">
 
3
  <info>
 
4
    <link type="guide" xref="index#dialogs"/>
 
5
    <desc><cmd>--password</cmd> オプションの使用</desc>
 
6
  </info>
 
7
  <title>パスワードダイアログ</title>
 
8
  <p>パスワードダイアログを作成するには、<cmd>--password</cmd> というオプションを使ってください。</p>
 
9
  <p>パスワードダイアログは、以下のオプションをサポートしています。</p>
 
10
 
 
11
  <terms>
 
12
    <item>
 
13
      <title><cmd>--username</cmd></title>
 
14
      <p>ユーザー名入力欄を表示します。</p>
 
15
    </item>
 
16
  </terms>
 
17
 
 
18
  <p>以下のスクリプトの例でパスワードダイアログの作成方法を示します。</p>
 
19
 
 
20
<code>
 
21
#!/bin/sh
 
22
 
 
23
ENTRY=`zenity --password --username`
 
24
 
 
25
case $? in
 
26
         0)
 
27
                echo "ユーザー名: `echo $ENTRY | cut -d'|' -f1`"
 
28
                echo "パスワード: `echo $ENTRY | cut -d'|' -f2`"
 
29
                ;;
 
30
         1)
 
31
                echo "ログインを中止しました。";;
 
32
        -1)
 
33
                echo "予期せぬエラーが発生しました。";;
 
34
esac
 
35
</code>
 
36
 
 
37
  <figure id="zenity-password-screenshot">
 
38
    <title>パスワード入力ダイアログの例</title>
 
39
    <desc><app>Zenity</app> パスワード入力ダイアログの例</desc>
 
40
    <media type="image" mime="image/png" src="figures/zenity-password-screenshot.png"/>
 
41
  </figure>
 
42
 
 
43
</page>