comparison ChangeLog @ 222:7945923e5fa6

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 677147547e2d
children 3703ded648ab
comparison
equal deleted inserted replaced
221:898b9450f274 222:7945923e5fa6
10 * Apply proper "banker's rounding" in number formatting in a cross-platform 10 * Apply proper "banker's rounding" in number formatting in a cross-platform
11 manner. 11 manner.
12 * The number formatting functions now also work with numbers represented by 12 * The number formatting functions now also work with numbers represented by
13 Python `Decimal` objects (ticket #53). 13 Python `Decimal` objects (ticket #53).
14 * Added extensible infrastructure for validating translation catalogs. 14 * Added extensible infrastructure for validating translation catalogs.
15 * Fixed the extractor not filtering out messages that didn't validate against
16 the keyword's specification (ticket #39).
17 * Fixed the extractor raising an exception when encountering an empty string
18 msgid. It now emits a warning to stderr.
19 * Numerous Python message extractor fixes: it now handles nested function
20 calls within a gettext function call correctly, uses the correct line number
21 for multi-line function calls, and other small fixes (tickets #38 and #39).
15 22
16 23
17 Version 0.8.1 24 Version 0.8.1
18 http://svn.edgewall.org/repos/babel/tags/0.8.1/ 25 http://svn.edgewall.org/repos/babel/tags/0.8.1/
19 (Jul 2 2007, from branches/stable/0.8.x) 26 (Jul 2 2007, from branches/stable/0.8.x)
Copyright (C) 2012-2017 Edgewall Software