]> granicus.if.org Git - python/commit
Several improvements, some of where were contributed by Bernhard
authorBarry Warsaw <barry@python.org>
Wed, 3 Nov 1999 18:47:52 +0000 (18:47 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 3 Nov 1999 18:47:52 +0000 (18:47 +0000)
commit5dbf526e8e79b35749f68fd8cfa4437e5146c5f7
tree7656e1ed09f1f78233a27b950019e6541be55e72
parenta507c3299177fd7505bc5685ca389ee759b7ab8d
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.
Tools/i18n/pygettext.py