consistency with the command-line frontend.
* Added compilation of message catalogs to MO files.
* Added updating of message catalogs from POT files.
+ * The name of the command-line script has been changed from just "babel" to
+ "pybabel" to avoid a conflict with the OpenBabel project (ticket #34).
Version 0.8.1
.. sectnum::
-When properly installed, Babel provides a script called ``babel``::
+When properly installed, Babel provides a script called ``pybabel``::
- $ babel --help
- usage: babel subcommand [options] [args]
+ $ pybabel --help
+ usage: pybabel subcommand [options] [args]
options:
--version show program's version number and exit
init create new message catalogs from a POT file
update update existing message catalogs from a POT file
-The ``babel`` script provides a number of sub-commands that do the actual work.
-Those sub-commands are described below.
+The ``pybabel`` script provides a number of sub-commands that do the actual
+work. Those sub-commands are described below.
compile
The ``compile`` sub-command can be used to compile translation catalogs into
binary MO files::
- $ babel compile --help
- usage: babel compile [options]
+ $ pybabel compile --help
+ usage: pybabel compile [options]
compile message catalogs to MO files
The ``extract`` sub-command can be used to extract localizable messages from
a collection of source files::
- $ babel extract --help
- usage: babel extract [options] dir1 <dir2> ...
+ $ pybabel extract --help
+ usage: pybabel extract [options] dir1 <dir2> ...
extract messages from source files and generate a POT file
The `init` sub-command creates a new translations catalog based on a PO
template file::
- $ babel init --help
- usage: babel init [options]
+ $ pybabel init --help
+ usage: pybabel init [options]
create new message catalogs from a POT file
The `update` sub-command updates an existing new translations catalog based on
a PO template file::
- $ babel update --help
- usage: babel update [options]
+ $ pybabel update --help
+ usage: pybabel update [options]
update existing message catalogs from a POT file