Mercurial > babel > mirror
view README.txt @ 222:88caccd5da79 trunk
o extract_python fixes:
- now returns None for non-string arguments
- no longer extracts strings from nested function calls
refs #38
- use the correct starting line number in multi-line gettext function
calls
- avoids falsely identifying string keyword arg defaults from
function definition names that match a keyword, e.g.:
def gettext(foo='bar')
- avoid capturing translator comments embedded within a gettext
function call
- default the file encoding to iso-8859-1 instead of ascii when
missing a magic encoding comment, to emulate pre Python 2.5
behavior. Python warns about 'non-ascii' chars when there is no magic
encoding comment, but < 2.5 actually treats them as iso-8859-1 for
backwards compat (PEP 263). >= 2.5 treats them as strict ascii
o extract fixes:
- filter out messages that don't contain strings where the keyword
specification calls for
fixes #39
- filter out empty string messages and emit a warning about them,
like xgettext
author | pjenvey |
---|---|
date | Wed, 18 Jul 2007 00:29:04 +0000 |
parents | 7870274479f5 |
children |
line wrap: on
line source
About Babel =========== Babel is a Python library that provides an integrated collection of utilities that assist with internationalizing and localizing Python applications (in particular web-based applications.) Details can be found in the HTML files in the `doc` folder. For more information please visit the Babel web site: <http://babel.edgewall.org/>