EnglishFrenchSpanish

Ad


OnWorks favicon

pygettext - Online in the Cloud

Run pygettext in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command pygettext that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


pygettext - Python equivalent of xgettext(1)

SYNOPSIS


pygettext [OPTIONS] INPUTFILE ...

DESCRIPTION


pygettext is deprecated. The current version of xgettext supports many languages,
including Python.

pygettext uses Python's standard tokenize module to scan Python source code, generating
.pot files identical to what GNU xgettext generates for C and C++ code. From there, the
standard GNU tools can be used.

pygettext searches only for _() by default, even though GNU xgettext recognizes the
following keywords: gettext, dgettext, dcgettext, and gettext_noop. See the -k/--keyword
flag below for how to augment this.

OPTIONS


-a, --extract-all
Extract all strings.

-d, --default-domain=NAME
Rename the default output file from messages.pot to name.pot.

-E, --escape
Replace non-ASCII characters with octal escape sequences.

-D, --docstrings
Extract module, class, method, and function docstrings. These do not need to be
wrapped in _() markers, and in fact cannot be for Python to consider them
docstrings. (See also the -X option).

-h, --help
Print this help message and exit.

-k, --keyword=WORD
Keywords to look for in addition to the default set, which are: _

You can have multiple -k flags on the command line.

-K, --no-default-keywords
Disable the default set of keywords (see above). Any keywords explicitly added
with the -k/--keyword option are still recognized.

--no-location
Do not write filename/lineno location comments.

-n, --add-location
Write filename/lineno location comments indicating where each extracted string is
found in the source. These lines appear before each msgid. The style of comments
is controlled by the -S/--style option. This is the default.

-o, --output=FILENAME
Rename the default output file from messages.pot to FILENAME. If FILENAME is `-'
then the output is sent to standard out.

-p, --output-dir=DIR
Output files will be placed in directory DIR.

-S, --style=STYLENAME
Specify which style to use for location comments. Two styles are supported:

· Solaris # File: filename, line: line-number

· GNU #: filename:line

The style name is case insensitive. GNU style is the default.

-v, --verbose
Print the names of the files being processed.

-V, --version
Print the version of pygettext and exit.

-w, --width=COLUMNS
Set width of output to columns.

-x, --exclude-file=FILENAME
Specify a file that contains a list of strings that are not be extracted from the
input files. Each string to be excluded must appear on a line by itself in the
file.

-X, --no-docstrings=FILENAME
Specify a file that contains a list of files (one per line) that should not have
their docstrings extracted. This is only useful in conjunction with the -D option
above.

If `INPUTFILE' is -, standard input is read.

Use pygettext online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    wxPython
    wxPython
    A set of Python extension modules that
    wrap the cross-platform GUI classes from
    wxWidgets.. Audience: Developers. User
    interface: X Window System (X11), Win32 ...
    Download wxPython
  • 2
    packfilemanager
    packfilemanager
    This is the Total War pack file manager
    project, starting from version 1.7. A
    short introduction into Warscape
    modding: ...
    Download packfilemanager
  • 3
    IPerf2
    IPerf2
    A network traffic tool for measuring
    TCP and UDP performance with metrics
    around both throughput and latency. The
    goals include maintaining an active
    iperf cod...
    Download IPerf2
  • 4
    fre:ac - free audio converter
    fre:ac - free audio converter
    fre:ac is a free audio converter and CD
    ripper for various formats and encoders.
    It features MP3, MP4/M4A, WMA, Ogg
    Vorbis, FLAC, AAC, and Bonk format
    support, ...
    Download fre:ac - free audio converter
  • 5
    Matplotlib
    Matplotlib
    Matplotlib is a comprehensive library
    for creating static, animated, and
    interactive visualizations in Python.
    Matplotlib makes easy things easy and
    hard thing...
    Download Matplotlib
  • 6
    BotMan
    BotMan
    Write your chatbot logic once and
    connect it to one of the available
    messaging services, including Amazon
    Alexa, Facebook Messenger, Slack,
    Telegram or even yo...
    Download BotMan
  • More »

Linux commands

  • 1
    acl_gran
    acl_gran
    rsbac-admin - Rule Set Based Access
    Control DESCRIPTION: rsbac-admin is a
    set of tool used to manage systems using
    a Rule Set Based Access Control (RSBAC)
    kern...
    Run acl_gran
  • 2
    acl_grant
    acl_grant
    rsbac-admin - Rule Set Based Access
    Control DESCRIPTION: rsbac-admin is a
    set of tool used to manage systems using
    a Rule Set Based Access Control (RSBAC)
    kern...
    Run acl_grant
  • 3
    coverdump
    coverdump
    coverdump - extracts cover images to
    files ...
    Run coverdump
  • 4
    covered
    covered
    Covered - Verilog Code Coverage
    Analyzer SYNTAX: covered
    [global_options] score [options] covered
    [global_options] merge [options]
    existing_database database_t...
    Run covered
  • 5
    gbnlreg
    gbnlreg
    gbnlreg - Non linear regression ...
    Run gbnlreg
  • 6
    gbonds
    gbonds
    gbonds - U.S. savings bond inventory
    program for GNOME ...
    Run gbonds
  • More »

Ad