Mercurial > babel > mirror
annotate ChangeLog @ 411:49859ecea64a trunk
More plural module cleanup and fixes.
author | cmlenz |
---|---|
date | Mon, 25 Aug 2008 11:49:19 +0000 |
parents | a23472f09246 |
children | 05487ae7696e |
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). |
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
|
8 |
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
|
9 |
396 | 10 Version 0.9.4 |
11 http://svn.edgewall.org/repos/babel/tags/0.9.4/ | |
406 | 12 (Aug 25 2008, from branches/stable/0.9.x) |
396 | 13 |
14 * Currency symbol definitions that is defined with choice patterns in the | |
15 CLDR data are no longer imported, so the symbol code will be used instead. | |
16 * 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
|
17 * 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
|
18 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
|
19 * 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
|
20 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
|
21 * 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
|
22 "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
|
23 Manlio Perillo for the suggestion. |
406 | 24 * Fixed JavaScript extraction for regular expression literals (ticket #138) |
25 and concatenated strings. | |
409 | 26 * 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
|
27 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
|
28 (ticket #137). |
396 | 29 |
30 | |
322 | 31 Version 0.9.3 |
32 http://svn.edgewall.org/repos/babel/tags/0.9.3/ | |
380 | 33 (Jul 9 2008, from branches/stable/0.9.x) |
322 | 34 |
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
|
35 * 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
|
36 * 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
|
37 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
|
38 * 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
|
39 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
|
40 * 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
|
41 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
|
42 * 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
|
43 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
|
44 * 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
|
45 * Updated to CLDR 1.6. |
348
76bfb34282af
Fixes for timezone calculations in time formatting (#83).
cmlenz
parents:
345
diff
changeset
|
46 * Fixed timezone calculations when formatting datetime and time values. |
374
c79e7d5bb3a6
Added changelog entry for new `get_plural` function.
aronacher
parents:
348
diff
changeset
|
47 * 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
|
48 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
|
49 * 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
|
50 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
|
51 (ticket #68). |
339 | 52 |
322 | 53 |
292 | 54 Version 0.9.2 |
55 http://svn.edgewall.org/repos/babel/tags/0.9.2/ | |
380 | 56 (Feb 4 2008, from branches/stable/0.9.x) |
292 | 57 |
294 | 58 * Fixed catalogs' charset values not being recognized (ticket #66). |
317 | 59 * Numerous improvements to the default plural forms. |
312
25b883553910
Fix catalog updating with fuzzy matches. Closes #82.
cmlenz
parents:
294
diff
changeset
|
60 * Fixed fuzzy matching when updating message catalogs (ticket #82). |
315 | 61 * Fixed bug in catalog updating, that in some cases pulled in translations |
62 from different catalogs based on the same template. | |
63 * Location lines in PO files do no longer get wrapped at hyphens in file | |
64 names (ticket #79). | |
317 | 65 * Fixed division by zero error in catalog compilation on empty catalogs |
66 (ticket #60). | |
312
25b883553910
Fix catalog updating with fuzzy matches. Closes #82.
cmlenz
parents:
294
diff
changeset
|
67 |
25b883553910
Fix catalog updating with fuzzy matches. Closes #82.
cmlenz
parents:
294
diff
changeset
|
68 |
277
9886bf6f2d15
Fix for updating catalog messages that changed from gettext to ngettext or vice versa.
cmlenz
parents:
263
diff
changeset
|
69 Version 0.9.1 |
9886bf6f2d15
Fix for updating catalog messages that changed from gettext to ngettext or vice versa.
cmlenz
parents:
263
diff
changeset
|
70 http://svn.edgewall.org/repos/babel/tags/0.9.1/ |
285 | 71 (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
|
72 |
285 | 73 * Fixed catalog updating when a message is merged that was previously simple |
74 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
|
75 `ngettext`, or vice versa. |
9886bf6f2d15
Fix for updating catalog messages that changed from gettext to ngettext or vice versa.
cmlenz
parents:
263
diff
changeset
|
76 * 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
|
77 * Fixed output encoding of the `pybabel --list-locales` command. |
320 | 78 * 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
|
79 |
9886bf6f2d15
Fix for updating catalog messages that changed from gettext to ngettext or vice versa.
cmlenz
parents:
263
diff
changeset
|
80 |
160 | 81 Version 0.9 |
82 http://svn.edgewall.org/repos/babel/tags/0.9.0/ | |
263 | 83 (Aug 20 2007, from branches/stable/0.9.x) |
160 | 84 |
187 | 85 * The `new_catalog` distutils command has been renamed to `init_catalog` for |
86 consistency with the command-line frontend. | |
219 | 87 * Added compilation of message catalogs to MO files (ticket #21). |
88 * Added updating of message catalogs from POT files (ticket #22). | |
213 | 89 * Support for significant digits in number formatting. |
90 * Apply proper "banker's rounding" in number formatting in a cross-platform | |
91 manner. | |
219 | 92 * The number formatting functions now also work with numbers represented by |
93 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
|
94 * Added extensible infrastructure for validating translation catalogs. |
222 | 95 * Fixed the extractor not filtering out messages that didn't validate against |
96 the keyword's specification (ticket #39). | |
97 * Fixed the extractor raising an exception when encountering an empty string | |
98 msgid. It now emits a warning to stderr. | |
99 * Numerous Python message extractor fixes: it now handles nested function | |
100 calls within a gettext function call correctly, uses the correct line number | |
101 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
|
102 * 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
|
103 strings (ticket #57). |
233
da97a3138239
Upgraded to CLDR 1.5 and improved timezone formatting.
cmlenz
parents:
225
diff
changeset
|
104 * CLDR upgraded to the 1.5 release. |
da97a3138239
Upgraded to CLDR 1.5 and improved timezone formatting.
cmlenz
parents:
225
diff
changeset
|
105 * Improved timezone formatting. |
263 | 106 * Implemented scientific number formatting. |
107 * Added mechanism to lookup locales by alias, for cases where browsers insist | |
108 on including only the language code in the `Accept-Language` header, and | |
109 sometimes even the incorrect language code. | |
160 | 110 |
166 | 111 |
152 | 112 Version 0.8.1 |
113 http://svn.edgewall.org/repos/babel/tags/0.8.1/ | |
192 | 114 (Jul 2 2007, from branches/stable/0.8.x) |
152 | 115 |
116 * `default_locale()` would fail when the value of the `LANGUAGE` environment | |
117 variable contained multiple language codes separated by colon, as is | |
118 explicitly allowed by the GNU gettext tools. As the `default_locale()` | |
119 function is called at the module level in some modules, this bug would | |
120 completely break importing these modules on systems where `LANGUAGE` is set | |
121 that way. | |
122 * The character set specified in PO template files is now respected when | |
123 creating new catalog files based on that template. This allows the use of | |
124 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
|
125 * 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
|
126 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
|
127 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
|
128 are now always sorted alphabetically. |
166 | 129 * The Python message extractor now respects the special encoding comment to be |
130 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
|
131 * Added 'N_' (gettext noop) to the extractor's default keywords. |
183 | 132 * Made locale string parsing more robust, and also take the script part into |
133 account (ticket #27). | |
185
6503a227ba93
Add a command-line option that prints out all available locales. Closes #24.
cmlenz
parents:
183
diff
changeset
|
134 * Added a function to list all locales for which locale data is available. |
192 | 135 * 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
|
136 available locales (ticket #24). |
192 | 137 * The name of the command-line script has been changed from just `babel` to |
138 `pybabel` to avoid a conflict with the OpenBabel project (ticket #34). | |
152 | 139 |
140 | |
139 | 141 Version 0.8 |
142 http://svn.edgewall.org/repos/babel/tags/0.8.0/ | |
143 (Jun 20 2007, from branches/stable/0.8.x) | |
144 | |
145 * First public release |