File: option_progress.rst

package info (click to toggle)
translate-toolkit 3.19.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,144 kB
  • sloc: python: 73,754; sh: 1,412; makefile: 185; xml: 48
file content (109 lines) | stat: -rw-r--r-- 2,719 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109

.. _option_progress:

--progress=PROGRESS
*******************

All of the programs can give visual feedback.  This options allows you to
select the style of that feedback.

In the examples we are converting and OpenOffice.org 2.0 sdf/gsi file into POT
files using :doc:`oo2po <oo2po>`.

.. _option_progress#none:

none
====

No visual feedback, this is useful if you want to use any of the scripts as
part of another script and don't want feedback to interfere with the operation.

.. code-block:: console

    $ oo2po -P --progress=none en-US.sdf pot
    $

.. _option_progress#dots:

dots
====

Use visual dots to represent progress.  Each dot represent a file that has been
processed.

.. code-block:: console

    $ oo2po -P --progress=dots en-US.sdf pot
    .............................................................................................
    .............................................................................................
    .........................................
    $

.. _option_progress#bar_default:

bar (default)
=============

Use a progress bar consisting of hashes (#) to show progress.

.. code-block:: console

    $ oo2po -P --progress=bar en-US.sdf pot
    processing 227 files...
    [##############################             ]  69%

This is the default mode of operation, therefore this command would create the
same output.

.. code-block:: console

    $ oo2po -P en-US.sdf pot

.. _option_progress#verbose:

verbose
=======

Combine the hash (#) progress bar form the *bar* option with the actual names
of files that have been processed.

.. code-block:: console

    $ oo2po -P --progress=verbose en-US.sdf pot
    processing 227 files...
    so3/src.oo
    dbaccess/source/ui/uno.oo
    helpcontent2/source/text/shared.oo
    wizards/source/formwizard.oo
    sch/source/ui/dlg.oo
    helpcontent2/source/text/sbasic/shared/01.oo
    dbaccess/source/core/resource.oo
    svtools/source/sbx.oo
    dbaccess/source/ui/relationdesign.oo
    scp2/source/writer.oo
    filter/source/xsltdialog.oo
    [##                                         ]   5%

.. _option_progress#names:

names
=====

Prints out only the filenames without any other progress indicator.  This is a
good option when outputting to a log file rather than a terminal.

.. code-block:: console

    $ oo2po -P --progress=names en-US.sdf pot
    so3/src.oo
    dbaccess/source/ui/uno.oo
    helpcontent2/source/text/shared.oo
    wizards/source/formwizard.oo
    sch/source/ui/dlg.oo
    helpcontent2/source/text/sbasic/shared/01.oo
    dbaccess/source/core/resource.oo
    svtools/source/sbx.oo
    dbaccess/source/ui/relationdesign.oo
    scp2/source/writer.oo
    filter/source/xsltdialog.oo