Mercurial > babel > mirror
annotate ChangeLog @ 427:de2b8a211501 trunk
Fix Catalog._set_mime_headers' handing of negative offsets.
Submitted by: Asheesh Laroia (Creative Commons)
Closes: #165
author | jruigrok |
---|---|
date | Mon, 16 Mar 2009 17:49:48 +0000 |
parents | 05487ae7696e |
children | d9a542a04ca4 |
rev | line source |
---|---|
395
a0457635279d
The `format_timedelta` function now returns, for example, ?1 day? instead of ?0 days? if the granularity is `day` and the delta is less than a day but greater than zero.
cmlenz
parents:
380
diff
changeset
|
1 Version 1.0 |
a0457635279d
The `format_timedelta` function now returns, for example, ?1 day? instead of ?0 days? if the granularity is `day` and the delta is less than a day but greater than zero.
cmlenz
parents:
380
diff
changeset
|
2 http://svn.edgewall.org/repos/babel/tags/1.0.0/ |
a0457635279d
The `format_timedelta` function now returns, for example, ?1 day? instead of ?0 days? if the granularity is `day` and the delta is less than a day but greater than zero.
cmlenz
parents:
380
diff
changeset
|
3 (???, from branches/stable/1.0.x) |
a0457635279d
The `format_timedelta` function now returns, for example, ?1 day? instead of ?0 days? if the granularity is `day` and the delta is less than a day but greater than zero.
cmlenz
parents:
380
diff
changeset
|
4 |
a0457635279d
The `format_timedelta` function now returns, for example, ?1 day? instead of ?0 days? if the granularity is `day` and the delta is less than a day but greater than zero.
cmlenz
parents:
380
diff
changeset
|
5 * Added support for the locale plural rules defined by the CLDR. |
a0457635279d
The `format_timedelta` function now returns, for example, ?1 day? instead of ?0 days? if the granularity is `day` and the delta is less than a day but greater than zero.
cmlenz
parents:
380
diff
changeset
|
6 * Added `format_timedelta` function to support localized formatting of |
a0457635279d
The `format_timedelta` function now returns, for example, ?1 day? instead of ?0 days? if the granularity is `day` and the delta is less than a day but greater than zero.
cmlenz
parents:
380
diff
changeset
|
7 relative times with strings such as "2 days" or "1 month" (ticket #126). |
414
05487ae7696e
fix Python 2.3 compat: rearrange set/itemgetter/rsplit/sorted/unicode.decode
pjenvey
parents:
409
diff
changeset
|
8 * Fixed Python 2.3 compatibility (ticket #146). |
427
de2b8a211501
Fix Catalog._set_mime_headers' handing of negative offsets.
jruigrok
parents:
414
diff
changeset
|
9 * Fixed negative offset handling of Catalog._set_mime_headers (ticket #165). |
395
a0457635279d
The `format_timedelta` function now returns, for example, ?1 day? instead of ?0 days? if the granularity is `day` and the delta is less than a day but greater than zero.
cmlenz
parents:
380
diff
changeset
|
10 |
a0457635279d
The `format_timedelta` function now returns, for example, ?1 day? instead of ?0 days? if the granularity is `day` and the delta is less than a day but greater than zero.
cmlenz
parents:
380
diff
changeset
|
11 |
396 | 12 Version 0.9.4 |
13 http://svn.edgewall.org/repos/babel/tags/0.9.4/ | |
406 | 14 (Aug 25 2008, from branches/stable/0.9.x) |
396 | 15 |
16 * Currency symbol definitions that is defined with choice patterns in the | |
17 CLDR data are no longer imported, so the symbol code will be used instead. | |
18 * Fixed quarter support in date formatting. | |
399
953a531232ca
Fix for memory leak reported in #128. Thanks to Manlio Perillo for reporting the problem.
cmlenz
parents:
396
diff
changeset
|
19 * Fixed a serious memory leak that was introduces by the support for CLDR |
953a531232ca
Fix for memory leak reported in #128. Thanks to Manlio Perillo for reporting the problem.
cmlenz
parents:
396
diff
changeset
|
20 aliases in 0.9.3 (ticket #128). |
403
3ded94255d9a
Strip locale modifiers when parsing (#136), and treat 'C' and 'POSIX' as aliases for 'en_US_POSIX'.
cmlenz
parents:
399
diff
changeset
|
21 * Locale modifiers such as "@euro" are now stripped from locale identifiers |
3ded94255d9a
Strip locale modifiers when parsing (#136), and treat 'C' and 'POSIX' as aliases for 'en_US_POSIX'.
cmlenz
parents:
399
diff
changeset
|
22 when parsing (ticket #136). |
3ded94255d9a
Strip locale modifiers when parsing (#136), and treat 'C' and 'POSIX' as aliases for 'en_US_POSIX'.
cmlenz
parents:
399
diff
changeset
|
23 * The system locales "C" and "POSIX" are now treated as aliases for |
3ded94255d9a
Strip locale modifiers when parsing (#136), and treat 'C' and 'POSIX' as aliases for 'en_US_POSIX'.
cmlenz
parents:
399
diff
changeset
|
24 "en_US_POSIX", for which the CLDR provides the appropriate data. Thanks to |
3ded94255d9a
Strip locale modifiers when parsing (#136), and treat 'C' and 'POSIX' as aliases for 'en_US_POSIX'.
cmlenz
parents:
399
diff
changeset
|
25 Manlio Perillo for the suggestion. |
406 | 26 * Fixed JavaScript extraction for regular expression literals (ticket #138) |
27 and concatenated strings. | |
409 | 28 * The `Translation` class in `babel.support` can now manage catalogs with |
408
62cc40fa04eb
Add message domain support to the `Translations` class. Closes #137.
cmlenz
parents:
406
diff
changeset
|
29 different message domains, and exposes the family of `d*gettext` functions |
62cc40fa04eb
Add message domain support to the `Translations` class. Closes #137.
cmlenz
parents:
406
diff
changeset
|
30 (ticket #137). |
396 | 31 |
32 | |
322 | 33 Version 0.9.3 |
34 http://svn.edgewall.org/repos/babel/tags/0.9.3/ | |
380 | 35 (Jul 9 2008, from branches/stable/0.9.x) |
322 | 36 |
338
b39145076d8a
Stripping of comment tags is optional now. If enabled it will strip the tags from all lines of a comment now.
aronacher
parents:
322
diff
changeset
|
37 * Fixed invalid message extraction methods causing an UnboundLocalError. |
345
e818b03b370f
Update to CLDR 1.5.1, which split out the metazone mappings into a separate supplemental file.
cmlenz
parents:
339
diff
changeset
|
38 * Extraction method specification can now use a dot instead of the colon to |
e818b03b370f
Update to CLDR 1.5.1, which split out the metazone mappings into a separate supplemental file.
cmlenz
parents:
339
diff
changeset
|
39 separate module and function name (ticket #105). |
e818b03b370f
Update to CLDR 1.5.1, which split out the metazone mappings into a separate supplemental file.
cmlenz
parents:
339
diff
changeset
|
40 * Fixed message catalog compilation for locales with more than two plural |
e818b03b370f
Update to CLDR 1.5.1, which split out the metazone mappings into a separate supplemental file.
cmlenz
parents:
339
diff
changeset
|
41 forms (ticket #95). |
e818b03b370f
Update to CLDR 1.5.1, which split out the metazone mappings into a separate supplemental file.
cmlenz
parents:
339
diff
changeset
|
42 * Fixed compilation of message catalogs for locales with more than two plural |
e818b03b370f
Update to CLDR 1.5.1, which split out the metazone mappings into a separate supplemental file.
cmlenz
parents:
339
diff
changeset
|
43 forms where the translations were empty (ticket #97). |
338
b39145076d8a
Stripping of comment tags is optional now. If enabled it will strip the tags from all lines of a comment now.
aronacher
parents:
322
diff
changeset
|
44 * The stripping of the comment tags in comments is optional now and |
b39145076d8a
Stripping of comment tags is optional now. If enabled it will strip the tags from all lines of a comment now.
aronacher
parents:
322
diff
changeset
|
45 is done for each line in a comment. |
375
4eca63af0a12
Implement support for aliases in the CLDR data. Closes #68. Also, update to CLDR 1.6, and a much improved `dump_data` script.
cmlenz
parents:
374
diff
changeset
|
46 * Added a JavaScript message extractor. |
4eca63af0a12
Implement support for aliases in the CLDR data. Closes #68. Also, update to CLDR 1.6, and a much improved `dump_data` script.
cmlenz
parents:
374
diff
changeset
|
47 * Updated to CLDR 1.6. |
348
76bfb34282af
Fixes for timezone calculations in time formatting (#83).
cmlenz
parents:
345
diff
changeset
|
48 * Fixed timezone calculations when formatting datetime and time values. |
374
c79e7d5bb3a6
Added changelog entry for new `get_plural` function.
aronacher
parents:
348
diff
changeset
|
49 * Added a `get_plural` function into the plurals module that returns the |
c79e7d5bb3a6
Added changelog entry for new `get_plural` function.
aronacher
parents:
348
diff
changeset
|
50 correct plural forms for a locale as tuple. |
375
4eca63af0a12
Implement support for aliases in the CLDR data. Closes #68. Also, update to CLDR 1.6, and a much improved `dump_data` script.
cmlenz
parents:
374
diff
changeset
|
51 * Added support for alias definitions in the CLDR data files, meaning that |
4eca63af0a12
Implement support for aliases in the CLDR data. Closes #68. Also, update to CLDR 1.6, and a much improved `dump_data` script.
cmlenz
parents:
374
diff
changeset
|
52 the chance for items missing in certain locales should be greatly reduced |
4eca63af0a12
Implement support for aliases in the CLDR data. Closes #68. Also, update to CLDR 1.6, and a much improved `dump_data` script.
cmlenz
parents:
374
diff
changeset
|
53 (ticket #68). |
339 | 54 |
322 | 55 |
292 | 56 Version 0.9.2 |
57 http://svn.edgewall.org/repos/babel/tags/0.9.2/ | |
380 | 58 (Feb 4 2008, from branches/stable/0.9.x) |
292 | 59 |
294 | 60 * Fixed catalogs' charset values not being recognized (ticket #66). |
317 | 61 * Numerous improvements to the default plural forms. |
312
25b883553910
Fix catalog updating with fuzzy matches. Closes #82.
cmlenz
parents:
294
diff
changeset
|
62 * Fixed fuzzy matching when updating message catalogs (ticket #82). |
315 | 63 * Fixed bug in catalog updating, that in some cases pulled in translations |
64 from different catalogs based on the same template. | |
65 * Location lines in PO files do no longer get wrapped at hyphens in file | |
66 names (ticket #79). | |
317 | 67 * Fixed division by zero error in catalog compilation on empty catalogs |
68 (ticket #60). | |
312
25b883553910
Fix catalog updating with fuzzy matches. Closes #82.
cmlenz
parents:
294
diff
changeset
|
69 |
25b883553910
Fix catalog updating with fuzzy matches. Closes #82.
cmlenz
parents:
294
diff
changeset
|
70 |
277
9886bf6f2d15
Fix for updating catalog messages that changed from gettext to ngettext or vice versa.
cmlenz
parents:
263
diff
changeset
|
71 Version 0.9.1 |
9886bf6f2d15
Fix for updating catalog messages that changed from gettext to ngettext or vice versa.
cmlenz
parents:
263
diff
changeset
|
72 http://svn.edgewall.org/repos/babel/tags/0.9.1/ |
285 | 73 (Sep 7 2007, from branches/stable/0.9.x) |
277
9886bf6f2d15
Fix for updating catalog messages that changed from gettext to ngettext or vice versa.
cmlenz
parents:
263
diff
changeset
|
74 |
285 | 75 * Fixed catalog updating when a message is merged that was previously simple |
76 but now has a plural form, for example by moving from `gettext` to | |
277
9886bf6f2d15
Fix for updating catalog messages that changed from gettext to ngettext or vice versa.
cmlenz
parents:
263
diff
changeset
|
77 `ngettext`, or vice versa. |
9886bf6f2d15
Fix for updating catalog messages that changed from gettext to ngettext or vice versa.
cmlenz
parents:
263
diff
changeset
|
78 * Fixed time formatting for 12 am and 12 pm. |
9886bf6f2d15
Fix for updating catalog messages that changed from gettext to ngettext or vice versa.
cmlenz
parents:
263
diff
changeset
|
79 * Fixed output encoding of the `pybabel --list-locales` command. |
320 | 80 * MO files are now written in binary mode on windows (ticket #61). |
277
9886bf6f2d15
Fix for updating catalog messages that changed from gettext to ngettext or vice versa.
cmlenz
parents:
263
diff
changeset
|
81 |
9886bf6f2d15
Fix for updating catalog messages that changed from gettext to ngettext or vice versa.
cmlenz
parents:
263
diff
changeset
|
82 |
160 | 83 Version 0.9 |
84 http://svn.edgewall.org/repos/babel/tags/0.9.0/ | |
263 | 85 (Aug 20 2007, from branches/stable/0.9.x) |
160 | 86 |
187 | 87 * The `new_catalog` distutils command has been renamed to `init_catalog` for |
88 consistency with the command-line frontend. | |
219 | 89 * Added compilation of message catalogs to MO files (ticket #21). |
90 * Added updating of message catalogs from POT files (ticket #22). | |
213 | 91 * Support for significant digits in number formatting. |
92 * Apply proper "banker's rounding" in number formatting in a cross-platform | |
93 manner. | |
219 | 94 * The number formatting functions now also work with numbers represented by |
95 Python `Decimal` objects (ticket #53). | |
220
97b4b289e792
Added infrastructure for adding catalog checkers, and implement a checker that validations Python format parameters in translations, closing #19.
cmlenz
parents:
219
diff
changeset
|
96 * Added extensible infrastructure for validating translation catalogs. |
222 | 97 * Fixed the extractor not filtering out messages that didn't validate against |
98 the keyword's specification (ticket #39). | |
99 * Fixed the extractor raising an exception when encountering an empty string | |
100 msgid. It now emits a warning to stderr. | |
101 * Numerous Python message extractor fixes: it now handles nested function | |
102 calls within a gettext function call correctly, uses the correct line number | |
103 for multi-line function calls, and other small fixes (tickets #38 and #39). | |
225
4f7f1f0e3b30
Applied patch by Ramiro Morales for more extensive detection of Python string formatting specifiers. Closes #57.
cmlenz
parents:
222
diff
changeset
|
104 * Improved support for detecting Python string formatting fields in message |
4f7f1f0e3b30
Applied patch by Ramiro Morales for more extensive detection of Python string formatting specifiers. Closes #57.
cmlenz
parents:
222
diff
changeset
|
105 strings (ticket #57). |
233
da97a3138239
Upgraded to CLDR 1.5 and improved timezone formatting.
cmlenz
parents:
225
diff
changeset
|
106 * CLDR upgraded to the 1.5 release. |
da97a3138239
Upgraded to CLDR 1.5 and improved timezone formatting.
cmlenz
parents:
225
diff
changeset
|
107 * Improved timezone formatting. |
263 | 108 * Implemented scientific number formatting. |
109 * Added mechanism to lookup locales by alias, for cases where browsers insist | |
110 on including only the language code in the `Accept-Language` header, and | |
111 sometimes even the incorrect language code. | |
160 | 112 |
166 | 113 |
152 | 114 Version 0.8.1 |
115 http://svn.edgewall.org/repos/babel/tags/0.8.1/ | |
192 | 116 (Jul 2 2007, from branches/stable/0.8.x) |
152 | 117 |
118 * `default_locale()` would fail when the value of the `LANGUAGE` environment | |
119 variable contained multiple language codes separated by colon, as is | |
120 explicitly allowed by the GNU gettext tools. As the `default_locale()` | |
121 function is called at the module level in some modules, this bug would | |
122 completely break importing these modules on systems where `LANGUAGE` is set | |
123 that way. | |
124 * The character set specified in PO template files is now respected when | |
125 creating new catalog files based on that template. This allows the use of | |
126 characters outside the ASCII range in POT files (ticket #17). | |
154
31478eb3fb9e
The default ordering of messages in generated POT files, which is based on the order those messages are found when walking the source tree, is no longer subject to differences between platforms; directory and file names are now always sorted alphabetically.
cmlenz
parents:
152
diff
changeset
|
127 * The default ordering of messages in generated POT files, which is based on |
31478eb3fb9e
The default ordering of messages in generated POT files, which is based on the order those messages are found when walking the source tree, is no longer subject to differences between platforms; directory and file names are now always sorted alphabetically.
cmlenz
parents:
152
diff
changeset
|
128 the order those messages are found when walking the source tree, is no |
31478eb3fb9e
The default ordering of messages in generated POT files, which is based on the order those messages are found when walking the source tree, is no longer subject to differences between platforms; directory and file names are now always sorted alphabetically.
cmlenz
parents:
152
diff
changeset
|
129 longer subject to differences between platforms; directory and file names |
31478eb3fb9e
The default ordering of messages in generated POT files, which is based on the order those messages are found when walking the source tree, is no longer subject to differences between platforms; directory and file names are now always sorted alphabetically.
cmlenz
parents:
152
diff
changeset
|
130 are now always sorted alphabetically. |
166 | 131 * The Python message extractor now respects the special encoding comment to be |
132 able to handle files containing non-ASCII characters (ticket #23). | |
179
31beb381d62f
added 'N_' (gettext noop) to the extractor's default keywords
pjenvey
parents:
166
diff
changeset
|
133 * Added 'N_' (gettext noop) to the extractor's default keywords. |
183 | 134 * Made locale string parsing more robust, and also take the script part into |
135 account (ticket #27). | |
185
6503a227ba93
Add a command-line option that prints out all available locales. Closes #24.
cmlenz
parents:
183
diff
changeset
|
136 * Added a function to list all locales for which locale data is available. |
192 | 137 * Added a command-line option to the `pybabel` command which prints out all |
185
6503a227ba93
Add a command-line option that prints out all available locales. Closes #24.
cmlenz
parents:
183
diff
changeset
|
138 available locales (ticket #24). |
192 | 139 * The name of the command-line script has been changed from just `babel` to |
140 `pybabel` to avoid a conflict with the OpenBabel project (ticket #34). | |
152 | 141 |
142 | |
139 | 143 Version 0.8 |
144 http://svn.edgewall.org/repos/babel/tags/0.8.0/ | |
145 (Jun 20 2007, from branches/stable/0.8.x) | |
146 | |
147 * First public release |