annotate 0.9.x/doc/cmdline.txt @ 501:2d12b4e6657d stable

Merged revisions 546 via svnmerge from http://svn.edgewall.org/repos/babel/trunk ........ r546 | jruigrok | 2010-04-26 13:28:07 +0200 (ma, 26 apr 2010) | 2 lines Fix documentation: double 'to' and stray reference to POT, which should be MO. ........
author jruigrok
date Tue, 22 Feb 2011 14:41:07 +0000
parents f2d6c593bc43
children
rev   line source
263
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
1 .. -*- mode: rst; encoding: utf-8 -*-
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
2
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
3 ======================
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
4 Command-Line Interface
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
5 ======================
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
6
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
7 Babel includes a command-line interface for working with message catalogs,
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
8 similar to the various GNU ``gettext`` tools commonly available on Linux/Unix
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
9 systems.
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
10
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
11
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
12 .. contents:: Contents
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
13 :depth: 2
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
14 .. sectnum::
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
15
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
16
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
17 When properly installed, Babel provides a script called ``pybabel``::
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
18
323
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
19 $ pybabel --help
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
20 usage: pybabel command [options] [args]
263
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
21
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
22 options:
323
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
23 --version show program's version number and exit
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
24 -h, --help show this help message and exit
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
25 --list-locales print all known locales and exit
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
26 -v, --verbose print as much as possible
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
27 -q, --quiet print as little as possible
263
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
28
323
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
29 commands:
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
30 compile compile message catalogs to MO files
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
31 extract extract messages from source files and generate a POT file
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
32 init create new message catalogs from a POT file
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
33 update update existing message catalogs from a POT file
263
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
34
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
35 The ``pybabel`` script provides a number of sub-commands that do the actual
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
36 work. Those sub-commands are described below.
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
37
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
38
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
39 compile
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
40 =======
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
41
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
42 The ``compile`` sub-command can be used to compile translation catalogs into
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
43 binary MO files::
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
44
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
45 $ pybabel compile --help
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
46 usage: pybabel compile [options]
323
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
47
263
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
48 compile message catalogs to MO files
323
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
49
263
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
50 options:
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
51 -h, --help show this help message and exit
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
52 -D DOMAIN, --domain=DOMAIN
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
53 domain of MO and PO files (default 'messages')
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
54 -d DIR, --directory=DIR
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
55 base directory of catalog files
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
56 -l LOCALE, --locale=LOCALE
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
57 locale of the catalog
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
58 -i FILE, --input-file=FILE
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
59 name of the input file
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
60 -o FILE, --output-file=FILE
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
61 name of the output file (default
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
62 '<output_dir>/<locale>/LC_MESSAGES/<domain>.mo')
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
63 -f, --use-fuzzy also include fuzzy translations (default False)
323
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
64 --statistics print statistics about translations
263
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
65
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
66 If ``directory`` is specified, but ``output-file`` is not, the default filename
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
67 of the output file will be::
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
68
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
69 <directory>/<locale>/LC_MESSAGES/<domain>.mo
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
70
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
71 If neither the ``input_file`` nor the ``locale`` option is set, this command
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
72 looks for all catalog files in the base directory that match the given domain,
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
73 and compiles each of them to MO files in the same directory.
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
74
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
75
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
76 extract
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
77 =======
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
78
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
79 The ``extract`` sub-command can be used to extract localizable messages from
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
80 a collection of source files::
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
81
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
82 $ pybabel extract --help
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
83 usage: pybabel extract [options] dir1 <dir2> ...
323
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
84
263
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
85 extract messages from source files and generate a POT file
323
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
86
263
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
87 options:
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
88 -h, --help show this help message and exit
323
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
89 --charset=CHARSET charset to use in the output (default "utf-8")
263
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
90 -k KEYWORDS, --keyword=KEYWORDS
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
91 keywords to look for in addition to the defaults. You
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
92 can specify multiple -k flags on the command line.
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
93 --no-default-keywords
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
94 do not include the default keywords
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
95 -F MAPPING_FILE, --mapping=MAPPING_FILE
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
96 path to the extraction mapping file
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
97 --no-location do not include location comments with filename and
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
98 line number
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
99 --omit-header do not include msgid "" entry in header
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
100 -o OUTPUT, --output=OUTPUT
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
101 path to the output POT file
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
102 -w WIDTH, --width=WIDTH
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
103 set output line width (default 76)
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
104 --no-wrap do not break long message lines, longer than the
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
105 output line width, into several lines
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
106 --sort-output generate sorted output (default False)
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
107 --sort-by-file sort output by file location (default False)
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
108 --msgid-bugs-address=EMAIL@ADDRESS
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
109 set report address for msgid
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
110 --copyright-holder=COPYRIGHT_HOLDER
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
111 set copyright holder in output
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
112 -c TAG, --add-comments=TAG
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
113 place comment block with TAG (or those preceding
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
114 keyword lines) in output file. One TAG per argument
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
115 call
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
116
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
117
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
118 init
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
119 ====
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
120
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
121 The `init` sub-command creates a new translations catalog based on a PO
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
122 template file::
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
123
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
124 $ pybabel init --help
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
125 usage: pybabel init [options]
323
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
126
263
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
127 create new message catalogs from a POT file
323
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
128
263
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
129 options:
323
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
130 -h, --help show this help message and exit
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
131 -D DOMAIN, --domain=DOMAIN
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
132 domain of PO file (default 'messages')
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
133 -i FILE, --input-file=FILE
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
134 name of the input file
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
135 -d DIR, --output-dir=DIR
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
136 path to output directory
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
137 -o FILE, --output-file=FILE
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
138 name of the output file (default
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
139 '<output_dir>/<locale>/LC_MESSAGES/<domain>.po')
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
140 -l LOCALE, --locale=LOCALE
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
141 locale for the new localized catalog
263
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
142
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
143
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
144 update
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
145 ======
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
146
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
147 The `update` sub-command updates an existing new translations catalog based on
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
148 a PO template file::
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
149
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
150 $ pybabel update --help
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
151 usage: pybabel update [options]
323
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
152
263
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
153 update existing message catalogs from a POT file
323
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
154
263
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
155 options:
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
156 -h, --help show this help message and exit
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
157 -D DOMAIN, --domain=DOMAIN
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
158 domain of PO file (default 'messages')
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
159 -i FILE, --input-file=FILE
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
160 name of the input file
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
161 -d DIR, --output-dir=DIR
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
162 path to output directory
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
163 -o FILE, --output-file=FILE
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
164 name of the output file (default
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
165 '<output_dir>/<locale>/LC_MESSAGES/<domain>.po')
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
166 -l LOCALE, --locale=LOCALE
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
167 locale of the translations catalog
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
168 --ignore-obsolete do not include obsolete messages in the output
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
169 (default False)
323
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
170 -N, --no-fuzzy-matching
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
171 do not use fuzzy matching (default False)
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
172 --previous keep previous msgids of translated messages (default
f2d6c593bc43 Ported [353:354] to 0.9.x stable branch.
cmlenz
parents: 263
diff changeset
173 False)
263
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
174
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
175 If ``output_dir`` is specified, but ``output-file`` is not, the default
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
176 filename of the output file will be::
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
177
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
178 <directory>/<locale>/LC_MESSAGES/<domain>.mo
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
179
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
180 If neither the ``output_file`` nor the ``locale`` option is set, this command
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
181 looks for all catalog files in the base directory that match the given domain,
5b7d3f9f7d74 Create branch for 0.9.x maintenance.
cmlenz
parents:
diff changeset
182 and updates each of them.
Copyright (C) 2012-2017 Edgewall Software