History log of /external/python/cpython3/Tools/i18n/pygettext.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
02b75abf731831e32bbb8007a3278c14f6ad700a 05-Aug-2016 Martin Panter <vadmium+py@gmail.com> Merge spelling and grammar fixes from 3.5
69332c1a64d6bdb80ff813fab403be832e12ce64 04-Aug-2016 Martin Panter <vadmium+py@gmail.com> Fix spelling and grammar in documentation and code comments
/external/python/cpython3/Tools/i18n/pygettext.py
328cb1fed0c91f50f311cdc545fe0e9303d0dae7 12-Apr-2016 Victor Stinner <victor.stinner@gmail.com> Update pygettext.py to get ride of imp

Issue #26639: Replace imp with importlib in Tools/i18n/pygettext.py.

Remove _get_modpkg_path(), replaced with importlib.util.find_spec().
/external/python/cpython3/Tools/i18n/pygettext.py
2b78129b3a2431d0ef80ec56aec084bf846bdef0 16-Apr-2015 R David Murray <rdmurray@bitdance.com> #18128: use standard +NNNN timezone format in POT-Creation-Date header.

Patch by Michael McFadden, with a few small style tweaks.
/external/python/cpython3/Tools/i18n/pygettext.py
eaedaeccf275d5e8cb3443c50323e57dee60a204 23-Dec-2013 Benjamin Peterson <benjamin@python.org> update Barry's email (#19563)
/external/python/cpython3/Tools/i18n/pygettext.py
859cd4723f07e2b1da7387f5be0f2ce0a195974d 09-Feb-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #17156: pygettext.py now uses an encoding of source file and correctly
writes and escapes non-ascii characters.
b6ed17344b456f397df800cc553fef94f5b1e58b 09-Feb-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #17156: pygettext.py now uses an encoding of source file and correctly
writes and escapes non-ascii characters.
/external/python/cpython3/Tools/i18n/pygettext.py
c20740109d59847ef3c7bfcb968e8c8fe019928a 07-Jul-2012 Florent Xicluna <florent.xicluna@gmail.com> Some cleanup in the Tools directory.
/external/python/cpython3/Tools/i18n/pygettext.py
90f5ba538bf40bcf4fd41049c7bf4296d3ffc9c7 11-Mar-2010 Benjamin Peterson <benjamin@python.org> convert shebang lines: python -> python3
/external/python/cpython3/Tools/i18n/pygettext.py
bf82e374ee737992235cbe944c9ddbd58236a892 16-May-2008 Georg Brandl <georg@python.org> More 2to3 fixes in the Tools directory. Fixes #2893.
/external/python/cpython3/Tools/i18n/pygettext.py
4e6531e7dee5ff9b27c108e8614d336657e68a21 09-May-2008 Alexandre Vassalotti <alexandre@peadrop.com> Removed remnants of os.path.walk().
/external/python/cpython3/Tools/i18n/pygettext.py
428de65ca99492436130165bfbaeb56d6d1daec7 18-Mar-2008 Trent Nelson <trent.nelson@snakebite.org> - Issue #719888: Updated tokenize to use a bytes API. generate_tokens has been
renamed tokenize and now works with bytes rather than strings. A new
detect_encoding function has been added for determining source file encoding
according to PEP-0263. Token sequences returned by tokenize always start
with an ENCODING token which specifies the encoding used to decode the file.
This token is used to encode the output of untokenize back to bytes.

Credit goes to Michael "I'm-going-to-name-my-first-child-unittest" Foord from Resolver Systems for this work.
/external/python/cpython3/Tools/i18n/pygettext.py
f7bd964fb5364e6cf8feac5f088e214b4f4e9478 15-Jan-2008 Guido van Rossum <guido@python.org> Patch #1830 by Peter Harris, fix some 2.x-isms.
/external/python/cpython3/Tools/i18n/pygettext.py
6464d471950c6ee109f82597ff70d755c127074f 22-Oct-2007 Georg Brandl <georg@python.org> In followup to #1310: Remove more exception indexing.
/external/python/cpython3/Tools/i18n/pygettext.py
6afaeb757af0dbd8508a0f2352ade61e41bec84c 03-Aug-2007 Collin Winter <collinw@gmail.com> Convert print statements to function calls in Tools/.
/external/python/cpython3/Tools/i18n/pygettext.py
b940e113bf90ff71b0ef57414ea2beea9d2a4bc0 10-Jan-2007 Guido van Rossum <guido@python.org> SF patch 1631942 by Collin Winter:
(a) "except E, V" -> "except E as V"
(b) V is now limited to a simple name (local variable)
(c) V is now deleted at the end of the except block
/external/python/cpython3/Tools/i18n/pygettext.py
89da5d7c3d9cf5bfd4a374e23fd924bbffdeaf5c 22-Aug-2006 Guido van Rossum <guido@python.org> Kill reduce(). A coproduction of John Reese, Jacques Frechet, and Alex M.
/external/python/cpython3/Tools/i18n/pygettext.py
2443d4ab5d42816210a4a2247804d72e5286d2fd 16-Aug-2004 Matthias Klose <doko@ubuntu.com> - pygettext.py: Generate POT-Creation-Date header in ISO format.
/external/python/cpython3/Tools/i18n/pygettext.py
e04ee70a68045f8d229ab59ad9b0256d0278c745 16-Apr-2003 Barry Warsaw <barry@python.org> Mostly reformatting, splitting long lines, whitespace normalization
etc.

Fixed one typo in the __main__ section.
/external/python/cpython3/Tools/i18n/pygettext.py
0d1fdea8efc48560d90374d8b785aee26ae82b70 22-Nov-2002 Martin v. Löwis <martin@v.loewis.de> Patch #494845: Support string concatenation, detect non-string data,
add globbing support, find modules by name instead of by file.
/external/python/cpython3/Tools/i18n/pygettext.py
63ce5af49660181d129aabb9c096cab07807b54b 27-Jul-2001 Barry Warsaw <barry@python.org> Added the -X/--no-docstrings flag which takes a filename containing a
list of files to not extract docstrings from when the -D option is
given. This isn't optimal, but I didn't want to change the semantics
of -D, and it's bad form to allow optional switch arguments.

Bumping __version__ to 1.4.

TokenEater.__init__(): Initialize __curfile to None.

__waiting(): In order to extract docstrings from the module, both the
-D flag should be set, and the __curfile should not be named in
the -X filename (i.e. it isn't in opts.nodocstrings).

set_filename(): Fixed a bug where once the first module docstring is
extracted, no subsequent module docstrings will be extracted. The
bug was that the first extraction set __freshmodule to 0, but that
flag was never reset back to 1. set_filename() is always called
when the next file is being processed, so use it to reset the
__freshmodule flag.

main(): Add support for -X/--no-docstring.
/external/python/cpython3/Tools/i18n/pygettext.py
5c94ce58e79f31966ee81dda0965bbe74e0d0cec 20-Jun-2001 Barry Warsaw <barry@python.org> write(): Karl Eichwalder points out that the #, flag comments should
be outputted just before the msgid lines.
/external/python/cpython3/Tools/i18n/pygettext.py
8c78d3a5d1225e986805925e13508a5339271e2a 19-Jun-2001 Barry Warsaw <barry@python.org> write(): It's been generally agreed on the i18n-sig that the docstring
marker should be output as a #, flag, e.g. "#, docstring".
/external/python/cpython3/Tools/i18n/pygettext.py
50cf706b5c3238ced48cc849532bf17f6c7c9197 25-May-2001 Barry Warsaw <barry@python.org> write(): Aggressively sort all catalog entries, and fix the bug where
there were multiple translatable strings on a single line of source
code.
/external/python/cpython3/Tools/i18n/pygettext.py
128c77d03ae413295f7c7803835788192b7e3315 23-May-2001 Barry Warsaw <barry@python.org> write(): Do two levels of sorting: first sort the individual location
tuples by filename/lineno, then sort the catalog entries by their
location tuples.
/external/python/cpython3/Tools/i18n/pygettext.py
2b63969a5adbc43a3843102f95b45424da229745 21-May-2001 Barry Warsaw <barry@python.org> main(): default-domain argument to getopt.getopt() was missing a = to
indicate it took an argument. This closes SF patch #402223 by Bastian
Kleineidam.
/external/python/cpython3/Tools/i18n/pygettext.py
16b62c13003901cbf1286f46ac845d620026aeb0 21-May-2001 Barry Warsaw <barry@python.org> __addentry(): add optional keyword arg `isdocstring' which is a flag
indicating whether the entry was extracted from a docstring or not.

write(): If any of the locations of a string appearance came from a
docstring, add a comment such as

#. docstring

before the references (after a suggestion by Martin von Loewis).
/external/python/cpython3/Tools/i18n/pygettext.py
6e972414bec063ce953df9dea5a13239ac7e5604 21-May-2001 Barry Warsaw <barry@python.org> write(): A patch inspired by Tokio Kikuchi that sorts location entries
first by filename and then by line number. Closes SF patch #425821.

Also, fixes a problem with duplicate entries.
/external/python/cpython3/Tools/i18n/pygettext.py
0f6b3832b9a0397910308f22f75f8449c4f492d8 01-Mar-2001 Martin v. Löwis <martin@v.loewis.de> Put current date into POT-Creation-Date; leave PO-Revision-Date for
for the translator to update; that is compatible with xgettext 0.10.35.
/external/python/cpython3/Tools/i18n/pygettext.py
75ee8f54fac7cdc38e70541f2857e60fae675a70 26-Feb-2001 Barry Warsaw <barry@python.org> main(): Slightly more informative error message when TokenError
occurs. Also, continue processing.
/external/python/cpython3/Tools/i18n/pygettext.py
08a8a355bebc4905f0bbd211bed4f53294e0d7b2 27-Oct-2000 Barry Warsaw <barry@python.org> Added the -D/--docstrings option for extraction of unmarked module,
class, method, and function docstrings.
/external/python/cpython3/Tools/i18n/pygettext.py
33e2c3ece373146e1890504aef0b87d87e8d57d0 26-Oct-2000 Fred Drake <fdrake@acm.org> Remove bogus stdout redirection and use of sys.__stdout__; use
augmented print statement instead.
/external/python/cpython3/Tools/i18n/pygettext.py
75a6e67e69cb4c66480446c03ec2fda3e430dd8b 02-May-2000 Barry Warsaw <barry@python.org> Added an unused Unicode string for testing.
/external/python/cpython3/Tools/i18n/pygettext.py
a17e0f1b61add9a49f2f611c7baf42257a3979da 08-Mar-2000 Barry Warsaw <barry@python.org> A bunch of changes, primarily to command line argument parsing
(inspired by Detlef Lannert). Specifically,

-k/--keyword no longer takes an optional argument to clear the
default keywords. Instead, use -K/--no-default-keywords to clear
them.

-n/--add-location also no longer takes an optional argument to set
the comment style. Instead, use -S/--style to set the comment
style to GNU or Solaris.

-o/--output can take `-' as the filename, meaning write to
standard output.

The inputfile name can also be `-' meaning read from standard in.

A few other changes include

Kludge to mark the file docstring as translatable. Since the
marking is to place _() around the docstring, and because we
actually have to define the _() function before we use it, this
means that we have to manually assign to __doc__ the output of
_(). This doesn't seem too bad because you'll only use this idiom
when translating a script's docstring (you really don't need to
translate most module docstrings).

Convert everything to string methods and do not import the string
module.

Bump the version number to 1.1
/external/python/cpython3/Tools/i18n/pygettext.py
7733e12c9cc0fbff9740ba6035bc5d266648449b 27-Feb-2000 Barry Warsaw <barry@python.org> Two buglet fixes. Peter Funk caught the bug in make_escapes:

This will fold all ISO 8859 chars from the upper half of the
charset into the lower half, which is ...ummm.... unintened.

The second is a typo in the reference to options.escape in main().
/external/python/cpython3/Tools/i18n/pygettext.py
c8f0892d1236df81af1811cf182692f28c85f916 26-Feb-2000 Barry Warsaw <barry@python.org> 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.
/external/python/cpython3/Tools/i18n/pygettext.py
8f35681843b922c905a10d7c74b30859cff88346 06-Dec-1999 Barry Warsaw <barry@python.org> Added \" to escapes so embedded escaped double quotes are handled
correctly. Patch suggested by Mads Kiilerich <mk@solit.dk>.
/external/python/cpython3/Tools/i18n/pygettext.py
5dbf526e8e79b35749f68fd8cfa4437e5146c5f7 03-Nov-1999 Barry Warsaw <barry@python.org> Several improvements, some of where were contributed by Bernhard
Herzog <herzog@online.de>. Specifically,

--verbose/-v flag added

pot_header added to make msgmerge and Emacs po-mode work better

normalize(), escape(), safe_eval(): Improved normalization of strings
for more .po file compatibility (e.g. C style). Handles emmbedded
newlines better.

Also added an identity function called _() and use it in the file
where messages are printed. This allows us to selftest pygettext.py
with itself as input.
/external/python/cpython3/Tools/i18n/pygettext.py
a507c3299177fd7505bc5685ca389ee759b7ab8d 03-Nov-1999 Barry Warsaw <barry@python.org> Python equivalent of xgettext(1). This was originally released
separately but now is included in the standard Python distribution.
/external/python/cpython3/Tools/i18n/pygettext.py
e27db5a3938b64a1e72c853285aa02c8c60c45d2 13-Aug-1999 Barry Warsaw <barry@python.org> Initial implementation
/external/python/cpython3/Tools/i18n/pygettext.py
af5725104b68a051c1c7cd0c11e364aff5780026 11-Aug-1999 Barry Warsaw <barry@python.org> Initial revision
/external/python/cpython3/Tools/i18n/pygettext.py