CHANGES 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725
  1. Babel Changelog
  2. ===============
  3. Version 2.9.1
  4. -------------
  5. Bugfixes
  6. ~~~~~~~~
  7. * The internal locale-data loading functions now validate the name of the locale file to be loaded and only
  8. allow files within Babel's data directory. Thank you to Chris Lyne of Tenable, Inc. for discovering the issue!
  9. Version 2.9.0
  10. -------------
  11. Upcoming version support changes
  12. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13. * This version, Babel 2.9, is the last version of Babel to support Python 2.7, Python 3.4, and Python 3.5.
  14. Improvements
  15. ~~~~~~~~~~~~
  16. * CLDR: Use CLDR 37 – Aarni Koskela (#734)
  17. * Dates: Handle ZoneInfo objects in get_timezone_location, get_timezone_name - Alessio Bogon (#741)
  18. * Numbers: Add group_separator feature in number formatting - Abdullah Javed Nesar (#726)
  19. Bugfixes
  20. ~~~~~~~~
  21. * Dates: Correct default Format().timedelta format to 'long' to mute deprecation warnings – Aarni Koskela
  22. * Import: Simplify iteration code in "import_cldr.py" – Felix Schwarz
  23. * Import: Stop using deprecated ElementTree methods "getchildren()" and "getiterator()" – Felix Schwarz
  24. * Messages: Fix unicode printing error on Python 2 without TTY. – Niklas Hambüchen
  25. * Messages: Introduce invariant that _invalid_pofile() takes unicode line. – Niklas Hambüchen
  26. * Tests: fix tests when using Python 3.9 – Felix Schwarz
  27. * Tests: Remove deprecated 'sudo: false' from Travis configuration – Jon Dufresne
  28. * Tests: Support Py.test 6.x – Aarni Koskela
  29. * Utilities: LazyProxy: Handle AttributeError in specified func – Nikiforov Konstantin (#724)
  30. * Utilities: Replace usage of parser.suite with ast.parse – Miro Hrončok
  31. Documentation
  32. ~~~~~~~~~~~~~
  33. * Update parse_number comments – Brad Martin (#708)
  34. * Add __iter__ to Catalog documentation – @CyanNani123
  35. Version 2.8.1
  36. -------------
  37. This is solely a patch release to make running tests on Py.test 6+ possible.
  38. Bugfixes
  39. ~~~~~~~~
  40. * Support Py.test 6 - Aarni Koskela (#747, #750, #752)
  41. Version 2.8.0
  42. -------------
  43. Improvements
  44. ~~~~~~~~~~~~
  45. * CLDR: Upgrade to CLDR 36.0 - Aarni Koskela (#679)
  46. * Messages: Don't even open files with the "ignore" extraction method - @sebleblanc (#678)
  47. Bugfixes
  48. ~~~~~~~~
  49. * Numbers: Fix formatting very small decimals when quantization is disabled - Lev Lybin, @miluChen (#662)
  50. * Messages: Attempt to sort all messages – Mario Frasca (#651, #606)
  51. Docs
  52. ~~~~
  53. * Add years to changelog - Romuald Brunet
  54. * Note that installation requires pytz - Steve (Gadget) Barnes
  55. Version 2.7.0
  56. -------------
  57. Possibly incompatible changes
  58. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  59. These may be backward incompatible in some cases, as some more-or-less internal
  60. APIs have changed. Please feel free to file issues if you bump into anything
  61. strange and we'll try to help!
  62. * General: Internal uses of ``babel.util.odict`` have been replaced with
  63. ``collections.OrderedDict`` from The Python standard library.
  64. Improvements
  65. ~~~~~~~~~~~~
  66. * CLDR: Upgrade to CLDR 35.1 - Alberto Mardegan, Aarni Koskela (#626, #643)
  67. * General: allow anchoring path patterns to the start of a string - Brian Cappello (#600)
  68. * General: Bumped version requirement on pytz - @chrisbrake (#592)
  69. * Messages: `pybabel compile`: exit with code 1 if errors were encountered - Aarni Koskela (#647)
  70. * Messages: Add omit-header to update_catalog - Cédric Krier (#633)
  71. * Messages: Catalog update: keep user comments from destination by default - Aarni Koskela (#648)
  72. * Messages: Skip empty message when writing mo file - Cédric Krier (#564)
  73. * Messages: Small fixes to avoid crashes on badly formatted .po files - Bryn Truscott (#597)
  74. * Numbers: `parse_decimal()` `strict` argument and `suggestions` - Charly C (#590)
  75. * Numbers: don't repeat suggestions in parse_decimal strict - Serban Constantin (#599)
  76. * Numbers: implement currency formatting with long display names - Luke Plant (#585)
  77. * Numbers: parse_decimal(): assume spaces are equivalent to non-breaking spaces when not in strict mode - Aarni Koskela (#649)
  78. * Performance: Cache locale_identifiers() - Aarni Koskela (#644)
  79. Bugfixes
  80. ~~~~~~~~
  81. * CLDR: Skip alt=... for week data (minDays, firstDay, weekendStart, weekendEnd) - Aarni Koskela (#634)
  82. * Dates: Fix wrong weeknumber for 31.12.2018 - BT-sschmid (#621)
  83. * Locale: Avoid KeyError trying to get data on WindowsXP - mondeja (#604)
  84. * Locale: get_display_name(): Don't attempt to concatenate variant information to None - Aarni Koskela (#645)
  85. * Messages: pofile: Add comparison operators to _NormalizedString - Aarni Koskela (#646)
  86. * Messages: pofile: don't crash when message.locations can't be sorted - Aarni Koskela (#646)
  87. Tooling & docs
  88. ~~~~~~~~~~~~~~
  89. * Docs: Remove all references to deprecated easy_install - Jon Dufresne (#610)
  90. * Docs: Switch print statement in docs to print function - NotAFile
  91. * Docs: Update all pypi.python.org URLs to pypi.org - Jon Dufresne (#587)
  92. * Docs: Use https URLs throughout project where available - Jon Dufresne (#588)
  93. * Support: Add testing and document support for Python 3.7 - Jon Dufresne (#611)
  94. * Support: Test on Python 3.8-dev - Aarni Koskela (#642)
  95. * Support: Using ABCs from collections instead of collections.abc is deprecated. - Julien Palard (#609)
  96. * Tests: Fix conftest.py compatibility with pytest 4.3 - Miro Hrončok (#635)
  97. * Tests: Update pytest and pytest-cov - Miro Hrončok (#635)
  98. Version 2.6.0
  99. -------------
  100. Possibly incompatible changes
  101. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  102. These may be backward incompatible in some cases, as some more-or-less internal APIs have changed.
  103. Please feel free to file issues if you bump into anything strange and we'll try to help!
  104. * Numbers: Refactor decimal handling code and allow bypass of decimal quantization. (@kdeldycke) (PR #538)
  105. * Messages: allow processing files that are in locales unknown to Babel (@akx) (PR #557)
  106. * General: Drop support for EOL Python 2.6 and 3.3 (@hugovk) (PR #546)
  107. Other changes
  108. ~~~~~~~~~~~~~
  109. * CLDR: Use CLDR 33 (@akx) (PR #581)
  110. * Lists: Add support for various list styles other than the default (@akx) (#552)
  111. * Messages: Add new PoFileError exception (@Bedrock02) (PR #532)
  112. * Times: Simplify Linux distro specific explicit timezone setting search (@scop) (PR #528)
  113. Bugfixes
  114. ~~~~~~~~
  115. * CLDR: avoid importing alt=narrow currency symbols (@akx) (PR #558)
  116. * CLDR: ignore non-Latin numbering systems (@akx) (PR #579)
  117. * Docs: Fix improper example for date formatting (@PTrottier) (PR #574)
  118. * Tooling: Fix some deprecation warnings (@akx) (PR #580)
  119. Tooling & docs
  120. ~~~~~~~~~~~~~~
  121. * Add explicit signatures to some date autofunctions (@xmo-odoo) (PR #554)
  122. * Include license file in the generated wheel package (@jdufresne) (PR #539)
  123. * Python 3.6 invalid escape sequence deprecation fixes (@scop) (PR #528)
  124. * Test and document all supported Python versions (@jdufresne) (PR #540)
  125. * Update copyright header years and authors file (@akx) (PR #559)
  126. Version 2.5.3
  127. -------------
  128. This is a maintenance release that reverts undesired API-breaking changes that slipped into 2.5.2
  129. (see https://github.com/python-babel/babel/issues/550).
  130. It is based on v2.5.1 (f29eccd) with commits 7cedb84, 29da2d2 and edfb518 cherry-picked on top.
  131. Version 2.5.2
  132. -------------
  133. Bugfixes
  134. ~~~~~~~~
  135. * Revert the unnecessary PyInstaller fixes from 2.5.0 and 2.5.1 (#533) (@yagebu)
  136. Version 2.5.1
  137. -------------
  138. Minor Improvements and bugfixes
  139. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  140. * Use a fixed datetime to avoid test failures (#520) (@narendravardi)
  141. * Parse multi-line __future__ imports better (#519) (@akx)
  142. * Fix validate_currency docstring (#522)
  143. * Allow normalize_locale and exists to handle various unexpected inputs (#523) (@suhojm)
  144. * Make PyInstaller support more robust (#525, #526) (@thijstriemstra, @akx)
  145. Version 2.5.0
  146. -------------
  147. New Features
  148. ~~~~~~~~~~~~
  149. * Numbers: Add currency utilities and helpers (#491) (@kdeldycke)
  150. * Support PyInstaller (#500, #505) (@wodo)
  151. Minor Improvements and bugfixes
  152. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  153. * Dates: Add __str__ to DateTimePattern (#515) (@sfermigier)
  154. * Dates: Fix an invalid string to bytes comparison when parsing TZ files on Py3 (#498) (@rowillia)
  155. * Dates: Formatting zero-padded components of dates is faster (#517) (@akx)
  156. * Documentation: Fix "Good Commits" link in CONTRIBUTING.md (#511) (@naryanacharya6)
  157. * Documentation: Fix link to Python gettext module (#512) (@Linkid)
  158. * Messages: Allow both dash and underscore separated locale identifiers in pofiles (#489, #490) (@akx)
  159. * Messages: Extract Python messages in nested gettext calls (#488) (@sublee)
  160. * Messages: Fix in-place editing of dir list while iterating (#476, #492) (@MarcDufresne)
  161. * Messages: Stabilize sort order (#482) (@xavfernandez)
  162. * Time zones: Honor the no-inherit marker for metazone names (#405) (@akx)
  163. Version 2.4.0
  164. -------------
  165. New Features
  166. ~~~~~~~~~~~~
  167. Some of these changes might break your current code and/or tests.
  168. * CLDR: CLDR 29 is now used instead of CLDR 28 (#405) (@akx)
  169. * Messages: Add option 'add_location' for location line formatting (#438, #459) (@rrader, @alxpy)
  170. * Numbers: Allow full control of decimal behavior (#410) (@etanol)
  171. Minor Improvements and bugfixes
  172. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  173. * Documentation: Improve Date Fields descriptions (#450) (@ldwoolley)
  174. * Documentation: Typo fixes and documentation improvements (#406, #412, #403, #440, #449, #463) (@zyegfryed, @adamchainz, @jwilk, @akx, @roramirez, @abhishekcs10)
  175. * Messages: Default to UTF-8 source encoding instead of ISO-8859-1 (#399) (@asottile)
  176. * Messages: Ensure messages are extracted in the order they were passed in (#424) (@ngrilly)
  177. * Messages: Message extraction for JSX files is improved (#392, #396, #425) (@karloskar, @georgschoelly)
  178. * Messages: PO file reading supports multi-line obsolete units (#429) (@mbirtwell)
  179. * Messages: Python message extractor respects unicode_literals in __future__ (#427) (@sublee)
  180. * Messages: Roundtrip Language headers (#420) (@kruton)
  181. * Messages: units before obsolete units are no longer erroneously marked obsolete (#452) (@mbirtwell)
  182. * Numbers: `parse_pattern` now preserves the full original pattern (#414) (@jtwang)
  183. * Numbers: Fix float conversion in `extract_operands` (#435) (@akx)
  184. * Plurals: Fix plural forms for Czech and Slovak locales (#373) (@ykshatroff)
  185. * Plurals: More plural form fixes based on Mozilla and CLDR references (#431) (@mshenfield)
  186. Internal improvements
  187. ~~~~~~~~~~~~~~~~~~~~~
  188. * Local times are constructed correctly in tests (#411) (@etanol)
  189. * Miscellaneous small improvements (#437) (@scop)
  190. * Regex flags are extracted from the regex strings (#462) (@singingwolfboy)
  191. * The PO file reader is now a class and has seen some refactoring (#429, #452) (@mbirtwell)
  192. Version 2.3.4
  193. -------------
  194. (Bugfix release, released on April 22th 2016)
  195. Bugfixes
  196. ~~~~~~~~
  197. * CLDR: The lxml library is no longer used for CLDR importing, so it should not cause strange failures either. Thanks to @aronbierbaum for the bug report and @jtwang for the fix. (https://github.com/python-babel/babel/pull/393)
  198. * CLI: Every last single CLI usage regression should now be gone, and both distutils and stand-alone CLIs should work as they have in the past. Thanks to @paxswill and @ajaeger for bug reports. (https://github.com/python-babel/babel/pull/389)
  199. Version 2.3.3
  200. -------------
  201. (Bugfix release, released on April 12th 2016)
  202. Bugfixes
  203. ~~~~~~~~
  204. * CLI: Usage regressions that had snuck in between 2.2 and 2.3 should be no more. (https://github.com/python-babel/babel/pull/386) Thanks to @ajaeger, @sebdiem and @jcristovao for bug reports and patches.
  205. Version 2.3.2
  206. -------------
  207. (Bugfix release, released on April 9th 2016)
  208. Bugfixes
  209. ~~~~~~~~
  210. * Dates: Period (am/pm) formatting was broken in certain locales (namely zh_TW). Thanks to @jun66j5 for the bug report. (https://github.com/python-babel/babel/issues/378, https://github.com/python-babel/babel/issues/379)
  211. Version 2.3.1
  212. -------------
  213. (Bugfix release because of deployment problems, released on April 8th 2016)
  214. Version 2.3
  215. -----------
  216. (Feature release, released on April 8th 2016)
  217. Internal improvements
  218. ~~~~~~~~~~~~~~~~~~~~~
  219. * The CLI frontend and Distutils commands use a shared implementation (https://github.com/python-babel/babel/pull/311)
  220. * PyPy3 is supported (https://github.com/python-babel/babel/pull/343)
  221. Features
  222. ~~~~~~~~
  223. * CLDR: Add an API for territory language data (https://github.com/python-babel/babel/pull/315)
  224. * Core: Character order and measurement system data is imported and exposed (https://github.com/python-babel/babel/pull/368)
  225. * Dates: Add an API for time interval formatting (https://github.com/python-babel/babel/pull/316)
  226. * Dates: More pattern formats and lengths are supported (https://github.com/python-babel/babel/pull/347)
  227. * Dates: Period IDs are imported and exposed (https://github.com/python-babel/babel/pull/349)
  228. * Dates: Support for date-time skeleton formats has been added (https://github.com/python-babel/babel/pull/265)
  229. * Dates: Timezone formatting has been improved (https://github.com/python-babel/babel/pull/338)
  230. * Messages: JavaScript extraction now supports dotted names, ES6 template strings and JSX tags (https://github.com/python-babel/babel/pull/332)
  231. * Messages: npgettext is recognized by default (https://github.com/python-babel/babel/pull/341)
  232. * Messages: The CLI learned to accept multiple domains (https://github.com/python-babel/babel/pull/335)
  233. * Messages: The extraction commands now accept filenames in addition to directories (https://github.com/python-babel/babel/pull/324)
  234. * Units: A new API for unit formatting is implemented (https://github.com/python-babel/babel/pull/369)
  235. Bugfixes
  236. ~~~~~~~~
  237. * Core: Mixed-case locale IDs work more reliably (https://github.com/python-babel/babel/pull/361)
  238. * Dates: S...S formats work correctly now (https://github.com/python-babel/babel/pull/360)
  239. * Messages: All messages are now sorted correctly if sorting has been specified (https://github.com/python-babel/babel/pull/300)
  240. * Messages: Fix the unexpected behavior caused by catalog header updating (e0e7ef1) (https://github.com/python-babel/babel/pull/320)
  241. * Messages: Gettext operands are now generated correctly (https://github.com/python-babel/babel/pull/295)
  242. * Messages: Message extraction has been taught to detect encodings better (https://github.com/python-babel/babel/pull/274)
  243. Version 2.2
  244. -----------
  245. (Feature release, released on January 2nd 2016)
  246. Bugfixes
  247. ~~~~~~~~
  248. * General: Add __hash__ to Locale. (#303) (2aa8074)
  249. * General: Allow files with BOM if they're UTF-8 (#189) (da87edd)
  250. * General: localedata directory is now locale-data (#109) (2d1882e)
  251. * General: odict: Fix pop method (0a9e97e)
  252. * General: Removed uses of datetime.date class from *.dat files (#174) (94f6830)
  253. * Messages: Fix plural selection for Chinese (531f666)
  254. * Messages: Fix typo and add semicolon in plural_forms (5784501)
  255. * Messages: Flatten NullTranslations.files into a list (ad11101)
  256. * Times: FixedOffsetTimezone: fix display of negative offsets (d816803)
  257. Features
  258. ~~~~~~~~
  259. * CLDR: Update to CLDR 28 (#292) (9f7f4d0)
  260. * General: Add __copy__ and __deepcopy__ to LazyProxy. (a1cc3f1)
  261. * General: Add official support for Python 3.4 and 3.5
  262. * General: Improve odict performance by making key search O(1) (6822b7f)
  263. * Locale: Add an ordinal_form property to Locale (#270) (b3f3430)
  264. * Locale: Add support for list formatting (37ce4fa, be6e23d)
  265. * Locale: Check inheritance exceptions first (3ef0d6d)
  266. * Messages: Allow file locations without line numbers (#279) (79bc781)
  267. * Messages: Allow passing a callable to `extract()` (#289) (3f58516)
  268. * Messages: Support 'Language' header field of PO files (#76) (3ce842b)
  269. * Messages: Update catalog headers from templates (e0e7ef1)
  270. * Numbers: Properly load and expose currency format types (#201) (df676ab)
  271. * Numbers: Use cdecimal by default when available (b6169be)
  272. * Numbers: Use the CLDR's suggested number of decimals for format_currency (#139) (201ed50)
  273. * Times: Add format_timedelta(format='narrow') support (edc5eb5)
  274. Version 2.1
  275. -----------
  276. (Bugfix/minor feature release, released on September 25th 2015)
  277. - Parse and honour the locale inheritance exceptions
  278. (https://github.com/python-babel/babel/issues/97)
  279. - Fix Locale.parse using ``global.dat`` incompatible types
  280. (https://github.com/python-babel/babel/issues/174)
  281. - Fix display of negative offsets in ``FixedOffsetTimezone``
  282. (https://github.com/python-babel/babel/issues/214)
  283. - Improved odict performance which is used during localization file
  284. build, should improve compilation time for large projects
  285. - Add support for "narrow" format for ``format_timedelta``
  286. - Add universal wheel support
  287. - Support 'Language' header field in .PO files
  288. (fixes https://github.com/python-babel/babel/issues/76)
  289. - Test suite enhancements (coverage, broken tests fixed, etc)
  290. - Documentation updated
  291. Version 2.0
  292. -----------
  293. (Released on July 27th 2015, codename Second Coming)
  294. - Added support for looking up currencies that belong to a territory
  295. through the :func:`babel.numbers.get_territory_currencies`
  296. function.
  297. - Improved Python 3 support.
  298. - Fixed some broken tests for timezone behavior.
  299. - Improved various smaller things for dealing with dates.
  300. Version 1.4
  301. -----------
  302. (bugfix release, release date to be decided)
  303. - Fixed a bug that caused deprecated territory codes not being
  304. converted properly by the subtag resolving. This for instance
  305. showed up when trying to use ``und_UK`` as a language code
  306. which now properly resolves to ``en_GB``.
  307. - Fixed a bug that made it impossible to import the CLDR data
  308. from scratch on windows systems.
  309. Version 1.3
  310. -----------
  311. (bugfix release, released on July 29th 2013)
  312. - Fixed a bug in likely-subtag resolving for some common locales.
  313. This primarily makes ``zh_CN`` work again which was broken
  314. due to how it was defined in the likely subtags combined with
  315. our broken resolving. This fixes :gh:`37`.
  316. - Fixed a bug that caused pybabel to break when writing to stdout
  317. on Python 3.
  318. - Removed a stray print that was causing issues when writing to
  319. stdout for message catalogs.
  320. Version 1.2
  321. -----------
  322. (bugfix release, released on July 27th 2013)
  323. - Included all tests in the tarball. Previously the include
  324. skipped past recursive folders.
  325. - Changed how tests are invoked and added separate standalone
  326. test command. This simplifies testing of the package for
  327. linux distributors.
  328. Version 1.1
  329. -----------
  330. (bugfix release, released on July 27th 2013)
  331. - added dummy version requirements for pytz so that it installs
  332. on pip 1.4.
  333. - Included tests in the tarball.
  334. Version 1.0
  335. -----------
  336. (Released on July 26th 2013, codename Revival)
  337. - support python 2.6, 2.7, 3.3+ and pypy - drop all other versions
  338. - use tox for testing on different pythons
  339. - Added support for the locale plural rules defined by the CLDR.
  340. - Added `format_timedelta` function to support localized formatting of
  341. relative times with strings such as "2 days" or "1 month" (:trac:`126`).
  342. - Fixed negative offset handling of Catalog._set_mime_headers (:trac:`165`).
  343. - Fixed the case where messages containing square brackets would break with
  344. an unpack error.
  345. - updated to CLDR 23
  346. - Make the CLDR import script work with Python 2.7.
  347. - Fix various typos.
  348. - Sort output of list-locales.
  349. - Make the POT-Creation-Date of the catalog being updated equal to
  350. POT-Creation-Date of the template used to update (:trac:`148`).
  351. - Use a more explicit error message if no option or argument (command) is
  352. passed to pybabel (:trac:`81`).
  353. - Keep the PO-Revision-Date if it is not the default value (:trac:`148`).
  354. - Make --no-wrap work by reworking --width's default and mimic xgettext's
  355. behaviour of always wrapping comments (:trac:`145`).
  356. - Add --project and --version options for commandline (:trac:`173`).
  357. - Add a __ne__() method to the Local class.
  358. - Explicitly sort instead of using sorted() and don't assume ordering
  359. (Jython compatibility).
  360. - Removed ValueError raising for string formatting message checkers if the
  361. string does not contain any string formattings (:trac:`150`).
  362. - Fix Serbian plural forms (:trac:`213`).
  363. - Small speed improvement in format_date() (:trac:`216`).
  364. - Fix so frontend.CommandLineInterface.run does not accumulate logging
  365. handlers (:trac:`227`, reported with initial patch by dfraser)
  366. - Fix exception if environment contains an invalid locale setting
  367. (:trac:`200`)
  368. - use cPickle instead of pickle for better performance (:trac:`225`)
  369. - Only use bankers round algorithm as a tie breaker if there are two nearest
  370. numbers, round as usual if there is only one nearest number (:trac:`267`,
  371. patch by Martin)
  372. - Allow disabling cache behaviour in LazyProxy (:trac:`208`, initial patch
  373. from Pedro Algarvio)
  374. - Support for context-aware methods during message extraction (:trac:`229`,
  375. patch from David Rios)
  376. - "init" and "update" commands support "--no-wrap" option (:trac:`289`)
  377. - fix formatting of fraction in format_decimal() if the input value is a float
  378. with more than 7 significant digits (:trac:`183`)
  379. - fix format_date() with datetime parameter (:trac:`282`, patch from Xavier
  380. Morel)
  381. - fix format_decimal() with small Decimal values (:trac:`214`, patch from
  382. George Lund)
  383. - fix handling of messages containing '\\n' (:trac:`198`)
  384. - handle irregular multi-line msgstr (no "" as first line) gracefully
  385. (:trac:`171`)
  386. - parse_decimal() now returns Decimals not floats, API change (:trac:`178`)
  387. - no warnings when running setup.py without installed setuptools (:trac:`262`)
  388. - modified Locale.__eq__ method so Locales are only equal if all of their
  389. attributes (language, territory, script, variant) are equal
  390. - resort to hard-coded message extractors/checkers if pkg_resources is
  391. installed but no egg-info was found (:trac:`230`)
  392. - format_time() and format_datetime() now accept also floats (:trac:`242`)
  393. - add babel.support.NullTranslations class similar to gettext.NullTranslations
  394. but with all of Babel's new gettext methods (:trac:`277`)
  395. - "init" and "update" commands support "--width" option (:trac:`284`)
  396. - fix 'input_dirs' option for setuptools integration (:trac:`232`, initial
  397. patch by Étienne Bersac)
  398. - ensure .mo file header contains the same information as the source .po file
  399. (:trac:`199`)
  400. - added support for get_language_name() on the locale objects.
  401. - added support for get_territory_name() on the locale objects.
  402. - added support for get_script_name() on the locale objects.
  403. - added pluralization support for currency names and added a '¤¤¤'
  404. pattern for currencies that includes the full name.
  405. - depend on pytz now and wrap it nicer. This gives us improved support
  406. for things like timezone transitions and an overall nicer API.
  407. - Added support for explicit charset to PO file reading.
  408. - Added experimental Python 3 support.
  409. - Added better support for returning timezone names.
  410. - Don't throw away a Catalog's obsolete messages when updating it.
  411. - Added basic likelySubtag resolving when doing locale parsing and no
  412. match can be found.
  413. Version 0.9.6
  414. -------------
  415. (released on March 17th 2011)
  416. - Backport r493-494: documentation typo fixes.
  417. - Make the CLDR import script work with Python 2.7.
  418. - Fix various typos.
  419. - Fixed Python 2.3 compatibility (:trac:`146`, :trac:`233`).
  420. - Sort output of list-locales.
  421. - Make the POT-Creation-Date of the catalog being updated equal to
  422. POT-Creation-Date of the template used to update (:trac:`148`).
  423. - Use a more explicit error message if no option or argument (command) is
  424. passed to pybabel (:trac:`81`).
  425. - Keep the PO-Revision-Date if it is not the default value (:trac:`148`).
  426. - Make --no-wrap work by reworking --width's default and mimic xgettext's
  427. behaviour of always wrapping comments (:trac:`145`).
  428. - Fixed negative offset handling of Catalog._set_mime_headers (:trac:`165`).
  429. - Add --project and --version options for commandline (:trac:`173`).
  430. - Add a __ne__() method to the Local class.
  431. - Explicitly sort instead of using sorted() and don't assume ordering
  432. (Python 2.3 and Jython compatibility).
  433. - Removed ValueError raising for string formatting message checkers if the
  434. string does not contain any string formattings (:trac:`150`).
  435. - Fix Serbian plural forms (:trac:`213`).
  436. - Small speed improvement in format_date() (:trac:`216`).
  437. - Fix number formatting for locales where CLDR specifies alt or draft
  438. items (:trac:`217`)
  439. - Fix bad check in format_time (:trac:`257`, reported with patch and tests by
  440. jomae)
  441. - Fix so frontend.CommandLineInterface.run does not accumulate logging
  442. handlers (:trac:`227`, reported with initial patch by dfraser)
  443. - Fix exception if environment contains an invalid locale setting
  444. (:trac:`200`)
  445. Version 0.9.5
  446. -------------
  447. (released on April 6th 2010)
  448. - Fixed the case where messages containing square brackets would break with
  449. an unpack error.
  450. - Backport of r467: Fuzzy matching regarding plurals should *NOT* be checked
  451. against len(message.id) because this is always 2, instead, it's should be
  452. checked against catalog.num_plurals (:trac:`212`).
  453. Version 0.9.4
  454. -------------
  455. (released on August 25th 2008)
  456. - Currency symbol definitions that is defined with choice patterns in the
  457. CLDR data are no longer imported, so the symbol code will be used instead.
  458. - Fixed quarter support in date formatting.
  459. - Fixed a serious memory leak that was introduces by the support for CLDR
  460. aliases in 0.9.3 (:trac:`128`).
  461. - Locale modifiers such as "@euro" are now stripped from locale identifiers
  462. when parsing (:trac:`136`).
  463. - The system locales "C" and "POSIX" are now treated as aliases for
  464. "en_US_POSIX", for which the CLDR provides the appropriate data. Thanks to
  465. Manlio Perillo for the suggestion.
  466. - Fixed JavaScript extraction for regular expression literals (:trac:`138`)
  467. and concatenated strings.
  468. - The `Translation` class in `babel.support` can now manage catalogs with
  469. different message domains, and exposes the family of `d*gettext` functions
  470. (:trac:`137`).
  471. Version 0.9.3
  472. -------------
  473. (released on July 9th 2008)
  474. - Fixed invalid message extraction methods causing an UnboundLocalError.
  475. - Extraction method specification can now use a dot instead of the colon to
  476. separate module and function name (:trac:`105`).
  477. - Fixed message catalog compilation for locales with more than two plural
  478. forms (:trac:`95`).
  479. - Fixed compilation of message catalogs for locales with more than two plural
  480. forms where the translations were empty (:trac:`97`).
  481. - The stripping of the comment tags in comments is optional now and
  482. is done for each line in a comment.
  483. - Added a JavaScript message extractor.
  484. - Updated to CLDR 1.6.
  485. - Fixed timezone calculations when formatting datetime and time values.
  486. - Added a `get_plural` function into the plurals module that returns the
  487. correct plural forms for a locale as tuple.
  488. - Added support for alias definitions in the CLDR data files, meaning that
  489. the chance for items missing in certain locales should be greatly reduced
  490. (:trac:`68`).
  491. Version 0.9.2
  492. -------------
  493. (released on February 4th 2008)
  494. - Fixed catalogs' charset values not being recognized (:trac:`66`).
  495. - Numerous improvements to the default plural forms.
  496. - Fixed fuzzy matching when updating message catalogs (:trac:`82`).
  497. - Fixed bug in catalog updating, that in some cases pulled in translations
  498. from different catalogs based on the same template.
  499. - Location lines in PO files do no longer get wrapped at hyphens in file
  500. names (:trac:`79`).
  501. - Fixed division by zero error in catalog compilation on empty catalogs
  502. (:trac:`60`).
  503. Version 0.9.1
  504. -------------
  505. (released on September 7th 2007)
  506. - Fixed catalog updating when a message is merged that was previously simple
  507. but now has a plural form, for example by moving from `gettext` to
  508. `ngettext`, or vice versa.
  509. - Fixed time formatting for 12 am and 12 pm.
  510. - Fixed output encoding of the `pybabel --list-locales` command.
  511. - MO files are now written in binary mode on windows (:trac:`61`).
  512. Version 0.9
  513. -----------
  514. (released on August 20th 2007)
  515. - The `new_catalog` distutils command has been renamed to `init_catalog` for
  516. consistency with the command-line frontend.
  517. - Added compilation of message catalogs to MO files (:trac:`21`).
  518. - Added updating of message catalogs from POT files (:trac:`22`).
  519. - Support for significant digits in number formatting.
  520. - Apply proper "banker's rounding" in number formatting in a cross-platform
  521. manner.
  522. - The number formatting functions now also work with numbers represented by
  523. Python `Decimal` objects (:trac:`53`).
  524. - Added extensible infrastructure for validating translation catalogs.
  525. - Fixed the extractor not filtering out messages that didn't validate against
  526. the keyword's specification (:trac:`39`).
  527. - Fixed the extractor raising an exception when encountering an empty string
  528. msgid. It now emits a warning to stderr.
  529. - Numerous Python message extractor fixes: it now handles nested function
  530. calls within a gettext function call correctly, uses the correct line number
  531. for multi-line function calls, and other small fixes (tickets :trac:`38` and
  532. :trac:`39`).
  533. - Improved support for detecting Python string formatting fields in message
  534. strings (:trac:`57`).
  535. - CLDR upgraded to the 1.5 release.
  536. - Improved timezone formatting.
  537. - Implemented scientific number formatting.
  538. - Added mechanism to lookup locales by alias, for cases where browsers insist
  539. on including only the language code in the `Accept-Language` header, and
  540. sometimes even the incorrect language code.
  541. Version 0.8.1
  542. -------------
  543. (released on July 2nd 2007)
  544. - `default_locale()` would fail when the value of the `LANGUAGE` environment
  545. variable contained multiple language codes separated by colon, as is
  546. explicitly allowed by the GNU gettext tools. As the `default_locale()`
  547. function is called at the module level in some modules, this bug would
  548. completely break importing these modules on systems where `LANGUAGE` is set
  549. that way.
  550. - The character set specified in PO template files is now respected when
  551. creating new catalog files based on that template. This allows the use of
  552. characters outside the ASCII range in POT files (:trac:`17`).
  553. - The default ordering of messages in generated POT files, which is based on
  554. the order those messages are found when walking the source tree, is no
  555. longer subject to differences between platforms; directory and file names
  556. are now always sorted alphabetically.
  557. - The Python message extractor now respects the special encoding comment to be
  558. able to handle files containing non-ASCII characters (:trac:`23`).
  559. - Added ``N_`` (gettext noop) to the extractor's default keywords.
  560. - Made locale string parsing more robust, and also take the script part into
  561. account (:trac:`27`).
  562. - Added a function to list all locales for which locale data is available.
  563. - Added a command-line option to the `pybabel` command which prints out all
  564. available locales (:trac:`24`).
  565. - The name of the command-line script has been changed from just `babel` to
  566. `pybabel` to avoid a conflict with the OpenBabel project (:trac:`34`).
  567. Version 0.8
  568. -----------
  569. (released on June 20th 2007)
  570. - First public release