Mercurial > babel > old > mirror
comparison doc/cmdline.txt @ 179:6138ea7ef7a8
* Instead of an extra `compile-all` option on the `compile` (or `compile_catalog`) command, compilation of all catalogs is performed when neither an `input_file` nor a `locale` is specified.
* The `--use-fuzzy` option works again from the command-line.
author | cmlenz |
---|---|
date | Wed, 27 Jun 2007 14:29:17 +0000 |
parents | f421e5576d26 |
children | e927dffc9ab4 |
comparison
equal
deleted
inserted
replaced
178:51fffa0a51ac | 179:6138ea7ef7a8 |
---|---|
18 | 18 |
19 $ babel --help | 19 $ babel --help |
20 usage: babel subcommand [options] [args] | 20 usage: babel subcommand [options] [args] |
21 | 21 |
22 options: | 22 options: |
23 --version show program's version number and exit | 23 --version show program's version number and exit |
24 -h, --help show this help message and exit | 24 -h, --help show this help message and exit |
25 | 25 |
26 subcommands: | 26 subcommands: |
27 extract extract messages from source files and generate a POT file | 27 compile compile message catalogs to MO files |
28 init create new message catalogs from a template | 28 extract extract messages from source files and generate a POT file |
29 init create new message catalogs from a template | |
29 | 30 |
30 The ``babel`` script provides a number of sub-commands that do the actual work. | 31 The ``babel`` script provides a number of sub-commands that do the actual work. |
31 Those sub-commands are described below. | 32 Those sub-commands are described below. |
33 | |
34 | |
35 compile | |
36 ======= | |
37 | |
38 The ``compile`` sub-command can be used to compile translation catalogs into | |
39 binary MO files:: | |
40 | |
41 $ babel compile --help | |
42 usage: babel compile [options] | |
43 | |
44 compile message catalogs to MO files | |
45 | |
46 options: | |
47 -h, --help show this help message and exit | |
48 -D DOMAIN, --domain=DOMAIN | |
49 domain of MO and PO files (default 'messages') | |
50 -d DIR, --directory=DIR | |
51 base directory of catalog files | |
52 -l LOCALE, --locale=LOCALE | |
53 locale of the catalog | |
54 -i FILE, --input-file=FILE | |
55 name of the input file | |
56 -o FILE, --output-file=FILE | |
57 name of the output file (default | |
58 '<output_dir>/<locale>/LC_MESSAGES/<domain>.mo') | |
59 -f, --use-fuzzy also include fuzzy translations (default False) | |
60 | |
61 If ``directory`` is specified, but ``output-file`` is not, the default filename | |
62 of the output file will be:: | |
63 | |
64 <directory>/<locale>/LC_MESSAGES/<domain>.mo | |
65 | |
66 If neither the ``input_file`` nor the ``locale`` option is set, this command | |
67 looks for all catalog files in the base directory that match the given domain, | |
68 and compiles each of them to MO files in the same directory. | |
69 | |
32 | 70 |
33 | 71 |
34 extract | 72 extract |
35 ======= | 73 ======= |
36 | 74 |