diff options
author | Barry Warsaw <barry@python.org> | 2000-02-26 20:56:47 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2000-02-26 20:56:47 (GMT) |
commit | c8f0892d1236df81af1811cf182692f28c85f916 (patch) | |
tree | c73dae359594c2444adb00666b9a265a24405f97 /Modules | |
parent | abc52169b73844d94de244a0273f635993189b94 (diff) | |
download | cpython-c8f0892d1236df81af1811cf182692f28c85f916.zip cpython-c8f0892d1236df81af1811cf182692f28c85f916.tar.gz cpython-c8f0892d1236df81af1811cf182692f28c85f916.tar.bz2 |
Changes submitted by Peter Funk (some fixes/additions by B.Warsaw) to
make pygettext more compatible with GNU xgettext, specifically:
Added -E/--escape for allowing pass-thru of iso8859-1 characters above
7 bits.
Added -o/--output option for renaming the output file from
messages.pot (there's overlap with -d/--default-domain, but GNU
xgettext has them both).
Added -p/--output-dir for specifying the output directory for
messages.pot.
Added -V/--version for printing the version number.
Added -w/--width for specifying the output page width (this is because
now pygettext, like GNU xgettext will put several locations on the
same line to cut down on vertical space).
Added -x/--exclude-file for specifying a list of strings that are not
to be extracted from the input files.
Bumped version number to 1.0
Try to import fintl and use fintl.gettext as _ if available. Fall
back is to use identity definition of _().
Moved the escape creation to a function make_escapes() so that its
behavior can be controlled by the -E option.
__openseen(): Support the -x option.
write(): Support -w option and vertical space preserving feature.
main(): Support new options.
Diffstat (limited to 'Modules')
0 files changed, 0 insertions, 0 deletions