view doc/cmdline.txt @ 23:f828705c3bce

Change pot header's first line, "Translations Template for %%(project)s." instead of "SOME DESCRIPTIVE TITLE.". '''`project`''' and '''`version`''' now default to '''PROJECT''' and '''VERSION''' respectively. Fixed a bug regarding '''Content-Transfer-Encoding''', it shouldn't be the charset, and we're defaulting to `8bit` untill someone complains.
author palgarvio
date Thu, 31 May 2007 18:04:41 +0000
parents 2cada72b40ae
children cc3c6cfe909d
line wrap: on
line source
.. -*- mode: rst; encoding: utf-8 -*-

======================
Command-Line Interface
======================

Babel includes a command-line interface for working with message catalogs,
similar to the GNU ``xgettext`` program commonly available on Linux/Unix
systems.


.. contents:: Contents
   :depth: 2
.. sectnum::


pygettext
=========

When properly installed, Babel provides a script called ``pygettext``, which can
be used to extract localized messages from a variety of files::

    $ pygettext --help
    usage: pygettext [options] dirname1 <dirname2> ...

    options:
      --version             show program's version number and exit
      -h, --help            show this help message and exit
      --charset=CHARSET     charset to use in the output
      -k KEYWORDS, --keyword=KEYWORDS
                            keywords to look for in addition to the defaults. You
                            can specify multiple -k flags on the command line.
      --no-location         do not include location comments with filename and
                            line number
      --omit-header         do not include msgid "" entry in header
      -o OUTPUT, --output=OUTPUT
                            path to the output POT file
Copyright (C) 2012-2017 Edgewall Software