pygettext3.4

Python 3.4 translatable string extraction

TLDR

Extract translatable strings
$ pygettext3.4 [file.py]
Output to specific file
$ pygettext3.4 -o [messages.pot] [file.py]
Extract from directory
$ pygettext3.4 -d [domain] [*.py]

SYNOPSIS

pygettext3.4 [options] [files]

DESCRIPTION

pygettext3.4 is the Python 3.4 version of pygettext, which extracts translatable strings from Python source files and generates POT (Portable Object Template) files for internationalization. It scans for strings wrapped in _(), gettext(), and similar marker functions.This version-specific binary targets Python 3.4 code. For current development, use the latest pygettext or the more feature-rich xgettext and Babel alternatives.

PARAMETERS

FILES

Python files to extract from.
-o FILE
Output file.
-d DOMAIN
Text domain.
-k KEYWORD
Additional keyword.

CAVEATS

Python 3.4 specific. Use latest pygettext3.

HISTORY

pygettext3.4 is Python 3.4's string extraction tool.

SEE ALSO

pygettext(1), xgettext(1), gettext(1)