Mercurial > babel > mirror
comparison doc/cmdline.txt @ 73:9bc73c0bf7e5 trunk
Extended the docs a bit.
author | cmlenz |
---|---|
date | Fri, 08 Jun 2007 21:40:44 +0000 |
parents | 6b9c32893007 |
children | c75fa55a65b9 |
comparison
equal
deleted
inserted
replaced
72:e0bb7dce49ea | 73:9bc73c0bf7e5 |
---|---|
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 | |
26 subcommands: | |
27 extract extract messages from source files and generate a POT file | |
28 init create new message catalogs from a template | |
25 | 29 |
26 The ``babel`` script provides a number of sub-commands that do the actual work. | 30 The ``babel`` script provides a number of sub-commands that do the actual work. |
27 Those sub-commands are described below. | 31 Those sub-commands are described below. |
28 | 32 |
29 | 33 |
53 path to the output POT file | 57 path to the output POT file |
54 -w WIDTH, --width=WIDTH | 58 -w WIDTH, --width=WIDTH |
55 set output line width (default 76) | 59 set output line width (default 76) |
56 --no-wrap do not break long message lines, longer than the | 60 --no-wrap do not break long message lines, longer than the |
57 output line width, into several lines | 61 output line width, into several lines |
62 | |
63 | |
64 init | |
65 ==== | |
66 | |
67 The `init` sub-command creates a new translations catalog based on a PO | |
68 template file:: | |
69 | |
70 $ babel init --help | |
71 usage: babel init [options] | |
72 | |
73 create new message catalogs from a template | |
74 | |
75 options: | |
76 -h, --help show this help message and exit | |
77 -D DOMAIN, --domain=DOMAIN | |
78 domain of PO file (defaults to lower-cased project | |
79 name) | |
80 -i INPUT_FILE, --input-file=INPUT_FILE | |
81 name of the input file | |
82 -d OUTPUT_DIR, --output-dir=OUTPUT_DIR | |
83 path to output directory | |
84 -o OUTPUT_FILE, --output-file=OUTPUT_FILE | |
85 name of the output file (default | |
86 '<output_dir>/<locale>/<domain>.po') | |
87 -l LOCALE, --locale=LOCALE | |
88 locale for the new localized catalog | |
89 --first-author=FIRST_AUTHOR_NAME | |
90 name of first author | |
91 --first-author-email=FIRST_AUTHOR_EMAIL | |
92 email of first author | |
93 --project-name=NAME the project name | |
94 --project-version=VERSION | |
95 the project version |