Mercurial > babel > old > mirror
annotate ChangeLog @ 457:f99a5c8e79b0
Workaround for a weird bug with newer versions of pytz, which fails when `utcoffset()` gets passed a `None` argument. Which it shouldn't be getting in the first place.
author | cmlenz |
---|---|
date | Tue, 06 Apr 2010 11:45:01 +0000 |
parents | fd955b04cd2f |
children | 6416edbbab2a |
rev | line source |
---|---|
397
ff9a6a37eb72
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:
382
diff
changeset
|
1 Version 1.0 |
ff9a6a37eb72
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:
382
diff
changeset
|
2 http://svn.edgewall.org/repos/babel/tags/1.0.0/ |
ff9a6a37eb72
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:
382
diff
changeset
|
3 (???, from branches/stable/1.0.x) |
ff9a6a37eb72
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:
382
diff
changeset
|
4 |
ff9a6a37eb72
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:
382
diff
changeset
|
5 * Added support for the locale plural rules defined by the CLDR. |
ff9a6a37eb72
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:
382
diff
changeset
|
6 * Added `format_timedelta` function to support localized formatting of |
ff9a6a37eb72
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:
382
diff
changeset
|
7 relative times with strings such as "2 days" or "1 month" (ticket #126). |
416
f03cc3bed4e1
fix Python 2.3 compat: rearrange set/itemgetter/rsplit/sorted/unicode.decode
pjenvey
parents:
411
diff
changeset
|
8 * Fixed Python 2.3 compatibility (ticket #146). |
429
08e2d18163d9
Fix Catalog._set_mime_headers' handing of negative offsets.
jruigrok
parents:
416
diff
changeset
|
9 * Fixed negative offset handling of Catalog._set_mime_headers (ticket #165). |
451 | 10 * Fixed the case where messages containing square brackets would break with |
11 an unpack error. | |
12 * Updated to CLDR 1.7. | |
397
ff9a6a37eb72
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:
382
diff
changeset
|
13 |
ff9a6a37eb72
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:
382
diff
changeset
|
14 |
456 | 15 Version 0.9.5 |
16 http://svn.edgewall.org/repos/babel/tags/0.9.5/ | |
17 (Apr 6 2010, from branches/stable/0.9.x) | |
18 | |
19 * Fixed the case where messages containing square brackets would break with | |
20 an unpack error. | |
21 * Backport of r467: Fuzzy matching regarding plurals should *NOT* be checked | |
22 against len(message.id) because this is always 2, instead, it's should be | |
23 checked against catalog.num_plurals (ticket #212). | |
24 | |
25 | |
398 | 26 Version 0.9.4 |
27 http://svn.edgewall.org/repos/babel/tags/0.9.4/ | |
408 | 28 (Aug 25 2008, from branches/stable/0.9.x) |
398 | 29 |
30 * Currency symbol definitions that is defined with choice patterns in the | |
31 CLDR data are no longer imported, so the symbol code will be used instead. | |
32 * Fixed quarter support in date formatting. | |
401
3bfce5e0030d
Fix for memory leak reported in #128. Thanks to Manlio Perillo for reporting the problem.
cmlenz
parents:
398
diff
changeset
|
33 * Fixed a serious memory leak that was introduces by the support for CLDR |
3bfce5e0030d
Fix for memory leak reported in #128. Thanks to Manlio Perillo for reporting the problem.
cmlenz
parents:
398
diff
changeset
|
34 aliases in 0.9.3 (ticket #128). |
405
209a1ec1ee38
Strip locale modifiers when parsing (#136), and treat 'C' and 'POSIX' as aliases for 'en_US_POSIX'.
cmlenz
parents:
401
diff
changeset
|
35 * Locale modifiers such as "@euro" are now stripped from locale identifiers |
209a1ec1ee38
Strip locale modifiers when parsing (#136), and treat 'C' and 'POSIX' as aliases for 'en_US_POSIX'.
cmlenz
parents:
401
diff
changeset
|
36 when parsing (ticket #136). |
209a1ec1ee38
Strip locale modifiers when parsing (#136), and treat 'C' and 'POSIX' as aliases for 'en_US_POSIX'.
cmlenz
parents:
401
diff
changeset
|
37 * The system locales "C" and "POSIX" are now treated as aliases for |
209a1ec1ee38
Strip locale modifiers when parsing (#136), and treat 'C' and 'POSIX' as aliases for 'en_US_POSIX'.
cmlenz
parents:
401
diff
changeset
|
38 "en_US_POSIX", for which the CLDR provides the appropriate data. Thanks to |
209a1ec1ee38
Strip locale modifiers when parsing (#136), and treat 'C' and 'POSIX' as aliases for 'en_US_POSIX'.
cmlenz
parents:
401
diff
changeset
|
39 Manlio Perillo for the suggestion. |
408 | 40 * Fixed JavaScript extraction for regular expression literals (ticket #138) |
41 and concatenated strings. | |
411 | 42 * The `Translation` class in `babel.support` can now manage catalogs with |
410
dc5b9feeab62
Add message domain support to the `Translations` class. Closes #137.
cmlenz
parents:
408
diff
changeset
|
43 different message domains, and exposes the family of `d*gettext` functions |
dc5b9feeab62
Add message domain support to the `Translations` class. Closes #137.
cmlenz
parents:
408
diff
changeset
|
44 (ticket #137). |
398 | 45 |
46 | |
324 | 47 Version 0.9.3 |
48 http://svn.edgewall.org/repos/babel/tags/0.9.3/ | |
382 | 49 (Jul 9 2008, from branches/stable/0.9.x) |
324 | 50 |
340
292c639506a3
Stripping of comment tags is optional now. If enabled it will strip the tags from all lines of a comment now.
aronacher
parents:
324
diff
changeset
|
51 * Fixed invalid message extraction methods causing an UnboundLocalError. |
347
c22f292731be
Update to CLDR 1.5.1, which split out the metazone mappings into a separate supplemental file.
cmlenz
parents:
341
diff
changeset
|
52 * Extraction method specification can now use a dot instead of the colon to |
c22f292731be
Update to CLDR 1.5.1, which split out the metazone mappings into a separate supplemental file.
cmlenz
parents:
341
diff
changeset
|
53 separate module and function name (ticket #105). |
c22f292731be
Update to CLDR 1.5.1, which split out the metazone mappings into a separate supplemental file.
cmlenz
parents:
341
diff
changeset
|
54 * Fixed message catalog compilation for locales with more than two plural |
c22f292731be
Update to CLDR 1.5.1, which split out the metazone mappings into a separate supplemental file.
cmlenz
parents:
341
diff
changeset
|
55 forms (ticket #95). |
c22f292731be
Update to CLDR 1.5.1, which split out the metazone mappings into a separate supplemental file.
cmlenz
parents:
341
diff
changeset
|
56 * Fixed compilation of message catalogs for locales with more than two plural |
c22f292731be
Update to CLDR 1.5.1, which split out the metazone mappings into a separate supplemental file.
cmlenz
parents:
341
diff
changeset
|
57 forms where the translations were empty (ticket #97). |
340
292c639506a3
Stripping of comment tags is optional now. If enabled it will strip the tags from all lines of a comment now.
aronacher
parents:
324
diff
changeset
|
58 * The stripping of the comment tags in comments is optional now and |
292c639506a3
Stripping of comment tags is optional now. If enabled it will strip the tags from all lines of a comment now.
aronacher
parents:
324
diff
changeset
|
59 is done for each line in a comment. |
377
841858d5b567
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:
376
diff
changeset
|
60 * Added a JavaScript message extractor. |
841858d5b567
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:
376
diff
changeset
|
61 * Updated to CLDR 1.6. |
350
e5db561bf70e
Fixes for timezone calculations in time formatting (#83).
cmlenz
parents:
347
diff
changeset
|
62 * Fixed timezone calculations when formatting datetime and time values. |
376
69260c099d9f
Added changelog entry for new `get_plural` function.
aronacher
parents:
350
diff
changeset
|
63 * Added a `get_plural` function into the plurals module that returns the |
69260c099d9f
Added changelog entry for new `get_plural` function.
aronacher
parents:
350
diff
changeset
|
64 correct plural forms for a locale as tuple. |
377
841858d5b567
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:
376
diff
changeset
|
65 * Added support for alias definitions in the CLDR data files, meaning that |
841858d5b567
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:
376
diff
changeset
|
66 the chance for items missing in certain locales should be greatly reduced |
841858d5b567
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:
376
diff
changeset
|
67 (ticket #68). |
341 | 68 |
324 | 69 |
294 | 70 Version 0.9.2 |
71 http://svn.edgewall.org/repos/babel/tags/0.9.2/ | |
382 | 72 (Feb 4 2008, from branches/stable/0.9.x) |
294 | 73 |
296 | 74 * Fixed catalogs' charset values not being recognized (ticket #66). |
319 | 75 * Numerous improvements to the default plural forms. |
314
5c0bda4f20b1
Fix catalog updating with fuzzy matches. Closes #82.
cmlenz
parents:
296
diff
changeset
|
76 * Fixed fuzzy matching when updating message catalogs (ticket #82). |
317 | 77 * Fixed bug in catalog updating, that in some cases pulled in translations |
78 from different catalogs based on the same template. | |
79 * Location lines in PO files do no longer get wrapped at hyphens in file | |
80 names (ticket #79). | |
319 | 81 * Fixed division by zero error in catalog compilation on empty catalogs |
82 (ticket #60). | |
314
5c0bda4f20b1
Fix catalog updating with fuzzy matches. Closes #82.
cmlenz
parents:
296
diff
changeset
|
83 |
5c0bda4f20b1
Fix catalog updating with fuzzy matches. Closes #82.
cmlenz
parents:
296
diff
changeset
|
84 |
279
3308e9971fab
Fix for updating catalog messages that changed from gettext to ngettext or vice versa.
cmlenz
parents:
265
diff
changeset
|
85 Version 0.9.1 |
3308e9971fab
Fix for updating catalog messages that changed from gettext to ngettext or vice versa.
cmlenz
parents:
265
diff
changeset
|
86 http://svn.edgewall.org/repos/babel/tags/0.9.1/ |
287 | 87 (Sep 7 2007, from branches/stable/0.9.x) |
279
3308e9971fab
Fix for updating catalog messages that changed from gettext to ngettext or vice versa.
cmlenz
parents:
265
diff
changeset
|
88 |
287 | 89 * Fixed catalog updating when a message is merged that was previously simple |
90 but now has a plural form, for example by moving from `gettext` to | |
279
3308e9971fab
Fix for updating catalog messages that changed from gettext to ngettext or vice versa.
cmlenz
parents:
265
diff
changeset
|
91 `ngettext`, or vice versa. |
3308e9971fab
Fix for updating catalog messages that changed from gettext to ngettext or vice versa.
cmlenz
parents:
265
diff
changeset
|
92 * Fixed time formatting for 12 am and 12 pm. |
3308e9971fab
Fix for updating catalog messages that changed from gettext to ngettext or vice versa.
cmlenz
parents:
265
diff
changeset
|
93 * Fixed output encoding of the `pybabel --list-locales` command. |
322 | 94 * MO files are now written in binary mode on windows (ticket #61). |
279
3308e9971fab
Fix for updating catalog messages that changed from gettext to ngettext or vice versa.
cmlenz
parents:
265
diff
changeset
|
95 |
3308e9971fab
Fix for updating catalog messages that changed from gettext to ngettext or vice versa.
cmlenz
parents:
265
diff
changeset
|
96 |
162 | 97 Version 0.9 |
98 http://svn.edgewall.org/repos/babel/tags/0.9.0/ | |
265 | 99 (Aug 20 2007, from branches/stable/0.9.x) |
162 | 100 |
189 | 101 * The `new_catalog` distutils command has been renamed to `init_catalog` for |
102 consistency with the command-line frontend. | |
221 | 103 * Added compilation of message catalogs to MO files (ticket #21). |
104 * Added updating of message catalogs from POT files (ticket #22). | |
215 | 105 * Support for significant digits in number formatting. |
106 * Apply proper "banker's rounding" in number formatting in a cross-platform | |
107 manner. | |
221 | 108 * The number formatting functions now also work with numbers represented by |
109 Python `Decimal` objects (ticket #53). | |
222
bd8b1301b27e
Added infrastructure for adding catalog checkers, and implement a checker that validations Python format parameters in translations, closing #19.
cmlenz
parents:
221
diff
changeset
|
110 * Added extensible infrastructure for validating translation catalogs. |
224 | 111 * Fixed the extractor not filtering out messages that didn't validate against |
112 the keyword's specification (ticket #39). | |
113 * Fixed the extractor raising an exception when encountering an empty string | |
114 msgid. It now emits a warning to stderr. | |
115 * Numerous Python message extractor fixes: it now handles nested function | |
116 calls within a gettext function call correctly, uses the correct line number | |
117 for multi-line function calls, and other small fixes (tickets #38 and #39). | |
227
f358dd40a960
Applied patch by Ramiro Morales for more extensive detection of Python string formatting specifiers. Closes #57.
cmlenz
parents:
224
diff
changeset
|
118 * Improved support for detecting Python string formatting fields in message |
f358dd40a960
Applied patch by Ramiro Morales for more extensive detection of Python string formatting specifiers. Closes #57.
cmlenz
parents:
224
diff
changeset
|
119 strings (ticket #57). |
235
d0cd235ede46
Upgraded to CLDR 1.5 and improved timezone formatting.
cmlenz
parents:
227
diff
changeset
|
120 * CLDR upgraded to the 1.5 release. |
d0cd235ede46
Upgraded to CLDR 1.5 and improved timezone formatting.
cmlenz
parents:
227
diff
changeset
|
121 * Improved timezone formatting. |
265 | 122 * Implemented scientific number formatting. |
123 * Added mechanism to lookup locales by alias, for cases where browsers insist | |
124 on including only the language code in the `Accept-Language` header, and | |
125 sometimes even the incorrect language code. | |
162 | 126 |
168 | 127 |
154 | 128 Version 0.8.1 |
129 http://svn.edgewall.org/repos/babel/tags/0.8.1/ | |
194 | 130 (Jul 2 2007, from branches/stable/0.8.x) |
154 | 131 |
132 * `default_locale()` would fail when the value of the `LANGUAGE` environment | |
133 variable contained multiple language codes separated by colon, as is | |
134 explicitly allowed by the GNU gettext tools. As the `default_locale()` | |
135 function is called at the module level in some modules, this bug would | |
136 completely break importing these modules on systems where `LANGUAGE` is set | |
137 that way. | |
138 * The character set specified in PO template files is now respected when | |
139 creating new catalog files based on that template. This allows the use of | |
140 characters outside the ASCII range in POT files (ticket #17). | |
156
0a41bd313985
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:
154
diff
changeset
|
141 * The default ordering of messages in generated POT files, which is based on |
0a41bd313985
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:
154
diff
changeset
|
142 the order those messages are found when walking the source tree, is no |
0a41bd313985
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:
154
diff
changeset
|
143 longer subject to differences between platforms; directory and file names |
0a41bd313985
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:
154
diff
changeset
|
144 are now always sorted alphabetically. |
168 | 145 * The Python message extractor now respects the special encoding comment to be |
146 able to handle files containing non-ASCII characters (ticket #23). | |
181
5c85c0ec4ef8
added 'N_' (gettext noop) to the extractor's default keywords
pjenvey
parents:
168
diff
changeset
|
147 * Added 'N_' (gettext noop) to the extractor's default keywords. |
185 | 148 * Made locale string parsing more robust, and also take the script part into |
149 account (ticket #27). | |
187
d3bde66ac8a9
Add a command-line option that prints out all available locales. Closes #24.
cmlenz
parents:
185
diff
changeset
|
150 * Added a function to list all locales for which locale data is available. |
194 | 151 * Added a command-line option to the `pybabel` command which prints out all |
187
d3bde66ac8a9
Add a command-line option that prints out all available locales. Closes #24.
cmlenz
parents:
185
diff
changeset
|
152 available locales (ticket #24). |
194 | 153 * The name of the command-line script has been changed from just `babel` to |
154 `pybabel` to avoid a conflict with the OpenBabel project (ticket #34). | |
154 | 155 |
156 | |
141 | 157 Version 0.8 |
158 http://svn.edgewall.org/repos/babel/tags/0.8.0/ | |
159 (Jun 20 2007, from branches/stable/0.8.x) | |
160 | |
161 * First public release |