|
Packit |
f09e2f |
Babel Changelog
|
|
Packit |
f09e2f |
===============
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 2.5.1
|
|
Packit |
f09e2f |
-------------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Minor Improvements and bugfixes
|
|
Packit |
f09e2f |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
* Use a fixed datetime to avoid test failures (#520) (@narendravardi)
|
|
Packit |
f09e2f |
* Parse multi-line __future__ imports better (#519) (@akx)
|
|
Packit |
f09e2f |
* Fix validate_currency docstring (#522)
|
|
Packit |
f09e2f |
* Allow normalize_locale and exists to handle various unexpected inputs (#523) (@suhojm)
|
|
Packit |
f09e2f |
* Make PyInstaller support more robust (#525, #526) (@thijstriemstra, @akx)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 2.5.0
|
|
Packit |
f09e2f |
-------------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
New Features
|
|
Packit |
f09e2f |
~~~~~~~~~~~~
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
* Numbers: Add currency utilities and helpers (#491) (@kdeldycke)
|
|
Packit |
f09e2f |
* Support PyInstaller (#500, #505) (@wodo)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Minor Improvements and bugfixes
|
|
Packit |
f09e2f |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
* Dates: Add __str__ to DateTimePattern (#515) (@sfermigier)
|
|
Packit |
f09e2f |
* Dates: Fix an invalid string to bytes comparison when parsing TZ files on Py3 (#498) (@rowillia)
|
|
Packit |
f09e2f |
* Dates: Formatting zero-padded components of dates is faster (#517) (@akx)
|
|
Packit |
f09e2f |
* Documentation: Fix "Good Commits" link in CONTRIBUTING.md (#511) (@naryanacharya6)
|
|
Packit |
f09e2f |
* Documentation: Fix link to Python gettext module (#512) (@Linkid)
|
|
Packit |
f09e2f |
* Messages: Allow both dash and underscore separated locale identifiers in pofiles (#489, #490) (@akx)
|
|
Packit |
f09e2f |
* Messages: Extract Python messages in nested gettext calls (#488) (@sublee)
|
|
Packit |
f09e2f |
* Messages: Fix in-place editing of dir list while iterating (#476, #492) (@MarcDufresne)
|
|
Packit |
f09e2f |
* Messages: Stabilize sort order (#482) (@xavfernandez)
|
|
Packit |
f09e2f |
* Time zones: Honor the no-inherit marker for metazone names (#405) (@akx)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 2.4.0
|
|
Packit |
f09e2f |
-------------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
New Features
|
|
Packit |
f09e2f |
~~~~~~~~~~~~
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Some of these changes might break your current code and/or tests.
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
* CLDR: CLDR 29 is now used instead of CLDR 28 (#405) (@akx)
|
|
Packit |
f09e2f |
* Messages: Add option 'add_location' for location line formatting (#438, #459) (@rrader, @alxpy)
|
|
Packit |
f09e2f |
* Numbers: Allow full control of decimal behavior (#410) (@etanol)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Minor Improvements and bugfixes
|
|
Packit |
f09e2f |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
* Documentation: Improve Date Fields descriptions (#450) (@ldwoolley)
|
|
Packit |
f09e2f |
* Documentation: Typo fixes and documentation improvements (#406, #412, #403, #440, #449, #463) (@zyegfryed, @adamchainz, @jwilk, @akx, @roramirez, @abhishekcs10)
|
|
Packit |
f09e2f |
* Messages: Default to UTF-8 source encoding instead of ISO-8859-1 (#399) (@asottile)
|
|
Packit |
f09e2f |
* Messages: Ensure messages are extracted in the order they were passed in (#424) (@ngrilly)
|
|
Packit |
f09e2f |
* Messages: Message extraction for JSX files is improved (#392, #396, #425) (@karloskar, @georgschoelly)
|
|
Packit |
f09e2f |
* Messages: PO file reading supports multi-line obsolete units (#429) (@mbirtwell)
|
|
Packit |
f09e2f |
* Messages: Python message extractor respects unicode_literals in __future__ (#427) (@sublee)
|
|
Packit |
f09e2f |
* Messages: Roundtrip Language headers (#420) (@kruton)
|
|
Packit |
f09e2f |
* Messages: units before obsolete units are no longer erroneously marked obsolete (#452) (@mbirtwell)
|
|
Packit |
f09e2f |
* Numbers: `parse_pattern` now preserves the full original pattern (#414) (@jtwang)
|
|
Packit |
f09e2f |
* Numbers: Fix float conversion in `extract_operands` (#435) (@akx)
|
|
Packit |
f09e2f |
* Plurals: Fix plural forms for Czech and Slovak locales (#373) (@ykshatroff)
|
|
Packit |
f09e2f |
* Plurals: More plural form fixes based on Mozilla and CLDR references (#431) (@mshenfield)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Internal improvements
|
|
Packit |
f09e2f |
~~~~~~~~~~~~~~~~~~~~~
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
* Local times are constructed correctly in tests (#411) (@etanol)
|
|
Packit |
f09e2f |
* Miscellaneous small improvements (#437) (@scop)
|
|
Packit |
f09e2f |
* Regex flags are extracted from the regex strings (#462) (@singingwolfboy)
|
|
Packit |
f09e2f |
* The PO file reader is now a class and has seen some refactoring (#429, #452) (@mbirtwell)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 2.3.4
|
|
Packit |
f09e2f |
-------------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
(Bugfix release, released on April 22th)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Bugfixes
|
|
Packit |
f09e2f |
~~~~~~~~
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
* 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)
|
|
Packit |
f09e2f |
* 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)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 2.3.3
|
|
Packit |
f09e2f |
-------------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
(Bugfix release, released on April 12th)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Bugfixes
|
|
Packit |
f09e2f |
~~~~~~~~
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
* 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.
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 2.3.2
|
|
Packit |
f09e2f |
-------------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
(Bugfix release, released on April 9th)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Bugfixes
|
|
Packit |
f09e2f |
~~~~~~~~
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
* 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)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 2.3.1
|
|
Packit |
f09e2f |
-------------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
(Bugfix release because of deployment problems, released on April 8th)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 2.3
|
|
Packit |
f09e2f |
-----------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
(Feature release, released on April 8th)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Internal improvements
|
|
Packit |
f09e2f |
~~~~~~~~~~~~~~~~~~~~~
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
* The CLI frontend and Distutils commands use a shared implementation (https://github.com/python-babel/babel/pull/311)
|
|
Packit |
f09e2f |
* PyPy3 is supported (https://github.com/python-babel/babel/pull/343)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Features
|
|
Packit |
f09e2f |
~~~~~~~~
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
* CLDR: Add an API for territory language data (https://github.com/python-babel/babel/pull/315)
|
|
Packit |
f09e2f |
* Core: Character order and measurement system data is imported and exposed (https://github.com/python-babel/babel/pull/368)
|
|
Packit |
f09e2f |
* Dates: Add an API for time interval formatting (https://github.com/python-babel/babel/pull/316)
|
|
Packit |
f09e2f |
* Dates: More pattern formats and lengths are supported (https://github.com/python-babel/babel/pull/347)
|
|
Packit |
f09e2f |
* Dates: Period IDs are imported and exposed (https://github.com/python-babel/babel/pull/349)
|
|
Packit |
f09e2f |
* Dates: Support for date-time skeleton formats has been added (https://github.com/python-babel/babel/pull/265)
|
|
Packit |
f09e2f |
* Dates: Timezone formatting has been improved (https://github.com/python-babel/babel/pull/338)
|
|
Packit |
f09e2f |
* Messages: JavaScript extraction now supports dotted names, ES6 template strings and JSX tags (https://github.com/python-babel/babel/pull/332)
|
|
Packit |
f09e2f |
* Messages: npgettext is recognized by default (https://github.com/python-babel/babel/pull/341)
|
|
Packit |
f09e2f |
* Messages: The CLI learned to accept multiple domains (https://github.com/python-babel/babel/pull/335)
|
|
Packit |
f09e2f |
* Messages: The extraction commands now accept filenames in addition to directories (https://github.com/python-babel/babel/pull/324)
|
|
Packit |
f09e2f |
* Units: A new API for unit formatting is implemented (https://github.com/python-babel/babel/pull/369)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Bugfixes
|
|
Packit |
f09e2f |
~~~~~~~~
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
* Core: Mixed-case locale IDs work more reliably (https://github.com/python-babel/babel/pull/361)
|
|
Packit |
f09e2f |
* Dates: S...S formats work correctly now (https://github.com/python-babel/babel/pull/360)
|
|
Packit |
f09e2f |
* Messages: All messages are now sorted correctly if sorting has been specified (https://github.com/python-babel/babel/pull/300)
|
|
Packit |
f09e2f |
* Messages: Fix the unexpected behavior caused by catalog header updating (e0e7ef1) (https://github.com/python-babel/babel/pull/320)
|
|
Packit |
f09e2f |
* Messages: Gettext operands are now generated correctly (https://github.com/python-babel/babel/pull/295)
|
|
Packit |
f09e2f |
* Messages: Message extraction has been taught to detect encodings better (https://github.com/python-babel/babel/pull/274)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 2.2
|
|
Packit |
f09e2f |
-----------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
(Feature release, released on January 2nd 2016)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Bugfixes
|
|
Packit |
f09e2f |
~~~~~~~~
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
* General: Add __hash__ to Locale. (#303) (2aa8074)
|
|
Packit |
f09e2f |
* General: Allow files with BOM if they're UTF-8 (#189) (da87edd)
|
|
Packit |
f09e2f |
* General: localedata directory is now locale-data (#109) (2d1882e)
|
|
Packit |
f09e2f |
* General: odict: Fix pop method (0a9e97e)
|
|
Packit |
f09e2f |
* General: Removed uses of datetime.date class from *.dat files (#174) (94f6830)
|
|
Packit |
f09e2f |
* Messages: Fix plural selection for Chinese (531f666)
|
|
Packit |
f09e2f |
* Messages: Fix typo and add semicolon in plural_forms (5784501)
|
|
Packit |
f09e2f |
* Messages: Flatten NullTranslations.files into a list (ad11101)
|
|
Packit |
f09e2f |
* Times: FixedOffsetTimezone: fix display of negative offsets (d816803)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Features
|
|
Packit |
f09e2f |
~~~~~~~~
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
* CLDR: Update to CLDR 28 (#292) (9f7f4d0)
|
|
Packit |
f09e2f |
* General: Add __copy__ and __deepcopy__ to LazyProxy. (a1cc3f1)
|
|
Packit |
f09e2f |
* General: Add official support for Python 3.4 and 3.5
|
|
Packit |
f09e2f |
* General: Improve odict performance by making key search O(1) (6822b7f)
|
|
Packit |
f09e2f |
* Locale: Add an ordinal_form property to Locale (#270) (b3f3430)
|
|
Packit |
f09e2f |
* Locale: Add support for list formatting (37ce4fa, be6e23d)
|
|
Packit |
f09e2f |
* Locale: Check inheritance exceptions first (3ef0d6d)
|
|
Packit |
f09e2f |
* Messages: Allow file locations without line numbers (#279) (79bc781)
|
|
Packit |
f09e2f |
* Messages: Allow passing a callable to `extract()` (#289) (3f58516)
|
|
Packit |
f09e2f |
* Messages: Support 'Language' header field of PO files (#76) (3ce842b)
|
|
Packit |
f09e2f |
* Messages: Update catalog headers from templates (e0e7ef1)
|
|
Packit |
f09e2f |
* Numbers: Properly load and expose currency format types (#201) (df676ab)
|
|
Packit |
f09e2f |
* Numbers: Use cdecimal by default when available (b6169be)
|
|
Packit |
f09e2f |
* Numbers: Use the CLDR's suggested number of decimals for format_currency (#139) (201ed50)
|
|
Packit |
f09e2f |
* Times: Add format_timedelta(format='narrow') support (edc5eb5)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 2.1
|
|
Packit |
f09e2f |
-----------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
(Bugfix/minor feature release, released on September 25th 2015)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
- Parse and honour the locale inheritance exceptions
|
|
Packit |
f09e2f |
(https://github.com/python-babel/babel/issues/97)
|
|
Packit |
f09e2f |
- Fix Locale.parse using ``global.dat`` incompatible types
|
|
Packit |
f09e2f |
(https://github.com/python-babel/babel/issues/174)
|
|
Packit |
f09e2f |
- Fix display of negative offsets in ``FixedOffsetTimezone``
|
|
Packit |
f09e2f |
(https://github.com/python-babel/babel/issues/214)
|
|
Packit |
f09e2f |
- Improved odict performance which is used during localization file
|
|
Packit |
f09e2f |
build, should improve compilation time for large projects
|
|
Packit |
f09e2f |
- Add support for "narrow" format for ``format_timedelta``
|
|
Packit |
f09e2f |
- Add universal wheel support
|
|
Packit |
f09e2f |
- Support 'Language' header field in .PO files
|
|
Packit |
f09e2f |
(fixes https://github.com/python-babel/babel/issues/76)
|
|
Packit |
f09e2f |
- Test suite enhancements (coverage, broken tests fixed, etc)
|
|
Packit |
f09e2f |
- Documentation updated
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 2.0
|
|
Packit |
f09e2f |
-----------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
(Released on July 27th 2015, codename Second Coming)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
- Added support for looking up currencies that belong to a territory
|
|
Packit |
f09e2f |
through the :func:`babel.numbers.get_territory_currencies`
|
|
Packit |
f09e2f |
function.
|
|
Packit |
f09e2f |
- Improved Python 3 support.
|
|
Packit |
f09e2f |
- Fixed some broken tests for timezone behavior.
|
|
Packit |
f09e2f |
- Improved various smaller things for dealing with dates.
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 1.4
|
|
Packit |
f09e2f |
-----------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
(bugfix release, release date to be decided)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
- Fixed a bug that caused deprecated territory codes not being
|
|
Packit |
f09e2f |
converted properly by the subtag resolving. This for instance
|
|
Packit |
f09e2f |
showed up when trying to use ``und_UK`` as a language code
|
|
Packit |
f09e2f |
which now properly resolves to ``en_GB``.
|
|
Packit |
f09e2f |
- Fixed a bug that made it impossible to import the CLDR data
|
|
Packit |
f09e2f |
from scratch on windows systems.
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 1.3
|
|
Packit |
f09e2f |
-----------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
(bugfix release, released on July 29th 2013)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
- Fixed a bug in likely-subtag resolving for some common locales.
|
|
Packit |
f09e2f |
This primarily makes ``zh_CN`` work again which was broken
|
|
Packit |
f09e2f |
due to how it was defined in the likely subtags combined with
|
|
Packit |
f09e2f |
our broken resolving. This fixes :gh:`37`.
|
|
Packit |
f09e2f |
- Fixed a bug that caused pybabel to break when writing to stdout
|
|
Packit |
f09e2f |
on Python 3.
|
|
Packit |
f09e2f |
- Removed a stray print that was causing issues when writing to
|
|
Packit |
f09e2f |
stdout for message catalogs.
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 1.2
|
|
Packit |
f09e2f |
-----------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
(bugfix release, released on July 27th 2013)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
- Included all tests in the tarball. Previously the include
|
|
Packit |
f09e2f |
skipped past recursive folders.
|
|
Packit |
f09e2f |
- Changed how tests are invoked and added separate standalone
|
|
Packit |
f09e2f |
test command. This simplifies testing of the package for
|
|
Packit |
f09e2f |
linux distributors.
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 1.1
|
|
Packit |
f09e2f |
-----------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
(bugfix release, released on July 27th 2013)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
- added dummy version requirements for pytz so that it installs
|
|
Packit |
f09e2f |
on pip 1.4.
|
|
Packit |
f09e2f |
- Included tests in the tarball.
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 1.0
|
|
Packit |
f09e2f |
-----------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
(Released on July 26th 2013, codename Revival)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
- support python 2.6, 2.7, 3.3+ and pypy - drop all other versions
|
|
Packit |
f09e2f |
- use tox for testing on different pythons
|
|
Packit |
f09e2f |
- Added support for the locale plural rules defined by the CLDR.
|
|
Packit |
f09e2f |
- Added `format_timedelta` function to support localized formatting of
|
|
Packit |
f09e2f |
relative times with strings such as "2 days" or "1 month" (:trac:`126`).
|
|
Packit |
f09e2f |
- Fixed negative offset handling of Catalog._set_mime_headers (:trac:`165`).
|
|
Packit |
f09e2f |
- Fixed the case where messages containing square brackets would break with
|
|
Packit |
f09e2f |
an unpack error.
|
|
Packit |
f09e2f |
- updated to CLDR 23
|
|
Packit |
f09e2f |
- Make the CLDR import script work with Python 2.7.
|
|
Packit |
f09e2f |
- Fix various typos.
|
|
Packit |
f09e2f |
- Sort output of list-locales.
|
|
Packit |
f09e2f |
- Make the POT-Creation-Date of the catalog being updated equal to
|
|
Packit |
f09e2f |
POT-Creation-Date of the template used to update (:trac:`148`).
|
|
Packit |
f09e2f |
- Use a more explicit error message if no option or argument (command) is
|
|
Packit |
f09e2f |
passed to pybabel (:trac:`81`).
|
|
Packit |
f09e2f |
- Keep the PO-Revision-Date if it is not the default value (:trac:`148`).
|
|
Packit |
f09e2f |
- Make --no-wrap work by reworking --width's default and mimic xgettext's
|
|
Packit |
f09e2f |
behaviour of always wrapping comments (:trac:`145`).
|
|
Packit |
f09e2f |
- Add --project and --version options for commandline (:trac:`173`).
|
|
Packit |
f09e2f |
- Add a __ne__() method to the Local class.
|
|
Packit |
f09e2f |
- Explicitly sort instead of using sorted() and don't assume ordering
|
|
Packit |
f09e2f |
(Jython compatibility).
|
|
Packit |
f09e2f |
- Removed ValueError raising for string formatting message checkers if the
|
|
Packit |
f09e2f |
string does not contain any string formattings (:trac:`150`).
|
|
Packit |
f09e2f |
- Fix Serbian plural forms (:trac:`213`).
|
|
Packit |
f09e2f |
- Small speed improvement in format_date() (:trac:`216`).
|
|
Packit |
f09e2f |
- Fix so frontend.CommandLineInterface.run does not accumulate logging
|
|
Packit |
f09e2f |
handlers (:trac:`227`, reported with initial patch by dfraser)
|
|
Packit |
f09e2f |
- Fix exception if environment contains an invalid locale setting
|
|
Packit |
f09e2f |
(:trac:`200`)
|
|
Packit |
f09e2f |
- use cPickle instead of pickle for better performance (:trac:`225`)
|
|
Packit |
f09e2f |
- Only use bankers round algorithm as a tie breaker if there are two nearest
|
|
Packit |
f09e2f |
numbers, round as usual if there is only one nearest number (:trac:`267`,
|
|
Packit |
f09e2f |
patch by Martin)
|
|
Packit |
f09e2f |
- Allow disabling cache behaviour in LazyProxy (:trac:`208`, initial patch
|
|
Packit |
f09e2f |
from Pedro Algarvio)
|
|
Packit |
f09e2f |
- Support for context-aware methods during message extraction (:trac:`229`,
|
|
Packit |
f09e2f |
patch from David Rios)
|
|
Packit |
f09e2f |
- "init" and "update" commands support "--no-wrap" option (:trac:`289`)
|
|
Packit |
f09e2f |
- fix formatting of fraction in format_decimal() if the input value is a float
|
|
Packit |
f09e2f |
with more than 7 significant digits (:trac:`183`)
|
|
Packit |
f09e2f |
- fix format_date() with datetime parameter (:trac:`282`, patch from Xavier
|
|
Packit |
f09e2f |
Morel)
|
|
Packit |
f09e2f |
- fix format_decimal() with small Decimal values (:trac:`214`, patch from
|
|
Packit |
f09e2f |
George Lund)
|
|
Packit |
f09e2f |
- fix handling of messages containing '\\n' (:trac:`198`)
|
|
Packit |
f09e2f |
- handle irregular multi-line msgstr (no "" as first line) gracefully
|
|
Packit |
f09e2f |
(:trac:`171`)
|
|
Packit |
f09e2f |
- parse_decimal() now returns Decimals not floats, API change (:trac:`178`)
|
|
Packit |
f09e2f |
- no warnings when running setup.py without installed setuptools (:trac:`262`)
|
|
Packit |
f09e2f |
- modified Locale.__eq__ method so Locales are only equal if all of their
|
|
Packit |
f09e2f |
attributes (language, territory, script, variant) are equal
|
|
Packit |
f09e2f |
- resort to hard-coded message extractors/checkers if pkg_resources is
|
|
Packit |
f09e2f |
installed but no egg-info was found (:trac:`230`)
|
|
Packit |
f09e2f |
- format_time() and format_datetime() now accept also floats (:trac:`242`)
|
|
Packit |
f09e2f |
- add babel.support.NullTranslations class similar to gettext.NullTranslations
|
|
Packit |
f09e2f |
but with all of Babel's new gettext methods (:trac:`277`)
|
|
Packit |
f09e2f |
- "init" and "update" commands support "--width" option (:trac:`284`)
|
|
Packit |
f09e2f |
- fix 'input_dirs' option for setuptools integration (:trac:`232`, initial
|
|
Packit |
f09e2f |
patch by Étienne Bersac)
|
|
Packit |
f09e2f |
- ensure .mo file header contains the same information as the source .po file
|
|
Packit |
f09e2f |
(:trac:`199`)
|
|
Packit |
f09e2f |
- added support for get_language_name() on the locale objects.
|
|
Packit |
f09e2f |
- added support for get_territory_name() on the locale objects.
|
|
Packit |
f09e2f |
- added support for get_script_name() on the locale objects.
|
|
Packit |
f09e2f |
- added pluralization support for currency names and added a '¤¤¤'
|
|
Packit |
f09e2f |
pattern for currencies that includes the full name.
|
|
Packit |
f09e2f |
- depend on pytz now and wrap it nicer. This gives us improved support
|
|
Packit |
f09e2f |
for things like timezone transitions and an overall nicer API.
|
|
Packit |
f09e2f |
- Added support for explicit charset to PO file reading.
|
|
Packit |
f09e2f |
- Added experimental Python 3 support.
|
|
Packit |
f09e2f |
- Added better support for returning timezone names.
|
|
Packit |
f09e2f |
- Don't throw away a Catalog's obsolete messages when updating it.
|
|
Packit |
f09e2f |
- Added basic likelySubtag resolving when doing locale parsing and no
|
|
Packit |
f09e2f |
match can be found.
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 0.9.6
|
|
Packit |
f09e2f |
-------------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
(released on March 17th 2011)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
- Backport r493-494: documentation typo fixes.
|
|
Packit |
f09e2f |
- Make the CLDR import script work with Python 2.7.
|
|
Packit |
f09e2f |
- Fix various typos.
|
|
Packit |
f09e2f |
- Fixed Python 2.3 compatibility (:trac:`146`, :trac:`233`).
|
|
Packit |
f09e2f |
- Sort output of list-locales.
|
|
Packit |
f09e2f |
- Make the POT-Creation-Date of the catalog being updated equal to
|
|
Packit |
f09e2f |
POT-Creation-Date of the template used to update (:trac:`148`).
|
|
Packit |
f09e2f |
- Use a more explicit error message if no option or argument (command) is
|
|
Packit |
f09e2f |
passed to pybabel (:trac:`81`).
|
|
Packit |
f09e2f |
- Keep the PO-Revision-Date if it is not the default value (:trac:`148`).
|
|
Packit |
f09e2f |
- Make --no-wrap work by reworking --width's default and mimic xgettext's
|
|
Packit |
f09e2f |
behaviour of always wrapping comments (:trac:`145`).
|
|
Packit |
f09e2f |
- Fixed negative offset handling of Catalog._set_mime_headers (:trac:`165`).
|
|
Packit |
f09e2f |
- Add --project and --version options for commandline (:trac:`173`).
|
|
Packit |
f09e2f |
- Add a __ne__() method to the Local class.
|
|
Packit |
f09e2f |
- Explicitly sort instead of using sorted() and don't assume ordering
|
|
Packit |
f09e2f |
(Python 2.3 and Jython compatibility).
|
|
Packit |
f09e2f |
- Removed ValueError raising for string formatting message checkers if the
|
|
Packit |
f09e2f |
string does not contain any string formattings (:trac:`150`).
|
|
Packit |
f09e2f |
- Fix Serbian plural forms (:trac:`213`).
|
|
Packit |
f09e2f |
- Small speed improvement in format_date() (:trac:`216`).
|
|
Packit |
f09e2f |
- Fix number formatting for locales where CLDR specifies alt or draft
|
|
Packit |
f09e2f |
items (:trac:`217`)
|
|
Packit |
f09e2f |
- Fix bad check in format_time (:trac:`257`, reported with patch and tests by
|
|
Packit |
f09e2f |
jomae)
|
|
Packit |
f09e2f |
- Fix so frontend.CommandLineInterface.run does not accumulate logging
|
|
Packit |
f09e2f |
handlers (:trac:`227`, reported with initial patch by dfraser)
|
|
Packit |
f09e2f |
- Fix exception if environment contains an invalid locale setting
|
|
Packit |
f09e2f |
(:trac:`200`)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 0.9.5
|
|
Packit |
f09e2f |
-------------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
(released on April 6th 2010)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
- Fixed the case where messages containing square brackets would break with
|
|
Packit |
f09e2f |
an unpack error.
|
|
Packit |
f09e2f |
- Backport of r467: Fuzzy matching regarding plurals should *NOT* be checked
|
|
Packit |
f09e2f |
against len(message.id) because this is always 2, instead, it's should be
|
|
Packit |
f09e2f |
checked against catalog.num_plurals (:trac:`212`).
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 0.9.4
|
|
Packit |
f09e2f |
-------------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
(released on August 25th 2008)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
- Currency symbol definitions that is defined with choice patterns in the
|
|
Packit |
f09e2f |
CLDR data are no longer imported, so the symbol code will be used instead.
|
|
Packit |
f09e2f |
- Fixed quarter support in date formatting.
|
|
Packit |
f09e2f |
- Fixed a serious memory leak that was introduces by the support for CLDR
|
|
Packit |
f09e2f |
aliases in 0.9.3 (:trac:`128`).
|
|
Packit |
f09e2f |
- Locale modifiers such as "@euro" are now stripped from locale identifiers
|
|
Packit |
f09e2f |
when parsing (:trac:`136`).
|
|
Packit |
f09e2f |
- The system locales "C" and "POSIX" are now treated as aliases for
|
|
Packit |
f09e2f |
"en_US_POSIX", for which the CLDR provides the appropriate data. Thanks to
|
|
Packit |
f09e2f |
Manlio Perillo for the suggestion.
|
|
Packit |
f09e2f |
- Fixed JavaScript extraction for regular expression literals (:trac:`138`)
|
|
Packit |
f09e2f |
and concatenated strings.
|
|
Packit |
f09e2f |
- The `Translation` class in `babel.support` can now manage catalogs with
|
|
Packit |
f09e2f |
different message domains, and exposes the family of `d*gettext` functions
|
|
Packit |
f09e2f |
(:trac:`137`).
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 0.9.3
|
|
Packit |
f09e2f |
-------------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
(released on July 9th 2008)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
- Fixed invalid message extraction methods causing an UnboundLocalError.
|
|
Packit |
f09e2f |
- Extraction method specification can now use a dot instead of the colon to
|
|
Packit |
f09e2f |
separate module and function name (:trac:`105`).
|
|
Packit |
f09e2f |
- Fixed message catalog compilation for locales with more than two plural
|
|
Packit |
f09e2f |
forms (:trac:`95`).
|
|
Packit |
f09e2f |
- Fixed compilation of message catalogs for locales with more than two plural
|
|
Packit |
f09e2f |
forms where the translations were empty (:trac:`97`).
|
|
Packit |
f09e2f |
- The stripping of the comment tags in comments is optional now and
|
|
Packit |
f09e2f |
is done for each line in a comment.
|
|
Packit |
f09e2f |
- Added a JavaScript message extractor.
|
|
Packit |
f09e2f |
- Updated to CLDR 1.6.
|
|
Packit |
f09e2f |
- Fixed timezone calculations when formatting datetime and time values.
|
|
Packit |
f09e2f |
- Added a `get_plural` function into the plurals module that returns the
|
|
Packit |
f09e2f |
correct plural forms for a locale as tuple.
|
|
Packit |
f09e2f |
- Added support for alias definitions in the CLDR data files, meaning that
|
|
Packit |
f09e2f |
the chance for items missing in certain locales should be greatly reduced
|
|
Packit |
f09e2f |
(:trac:`68`).
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 0.9.2
|
|
Packit |
f09e2f |
-------------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
(released on February 4th 2008)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
- Fixed catalogs' charset values not being recognized (:trac:`66`).
|
|
Packit |
f09e2f |
- Numerous improvements to the default plural forms.
|
|
Packit |
f09e2f |
- Fixed fuzzy matching when updating message catalogs (:trac:`82`).
|
|
Packit |
f09e2f |
- Fixed bug in catalog updating, that in some cases pulled in translations
|
|
Packit |
f09e2f |
from different catalogs based on the same template.
|
|
Packit |
f09e2f |
- Location lines in PO files do no longer get wrapped at hyphens in file
|
|
Packit |
f09e2f |
names (:trac:`79`).
|
|
Packit |
f09e2f |
- Fixed division by zero error in catalog compilation on empty catalogs
|
|
Packit |
f09e2f |
(:trac:`60`).
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 0.9.1
|
|
Packit |
f09e2f |
-------------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
(released on September 7th 2007)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
- Fixed catalog updating when a message is merged that was previously simple
|
|
Packit |
f09e2f |
but now has a plural form, for example by moving from `gettext` to
|
|
Packit |
f09e2f |
`ngettext`, or vice versa.
|
|
Packit |
f09e2f |
- Fixed time formatting for 12 am and 12 pm.
|
|
Packit |
f09e2f |
- Fixed output encoding of the `pybabel --list-locales` command.
|
|
Packit |
f09e2f |
- MO files are now written in binary mode on windows (:trac:`61`).
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 0.9
|
|
Packit |
f09e2f |
-----------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
(released on August 20th 2007)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
- The `new_catalog` distutils command has been renamed to `init_catalog` for
|
|
Packit |
f09e2f |
consistency with the command-line frontend.
|
|
Packit |
f09e2f |
- Added compilation of message catalogs to MO files (:trac:`21`).
|
|
Packit |
f09e2f |
- Added updating of message catalogs from POT files (:trac:`22`).
|
|
Packit |
f09e2f |
- Support for significant digits in number formatting.
|
|
Packit |
f09e2f |
- Apply proper "banker's rounding" in number formatting in a cross-platform
|
|
Packit |
f09e2f |
manner.
|
|
Packit |
f09e2f |
- The number formatting functions now also work with numbers represented by
|
|
Packit |
f09e2f |
Python `Decimal` objects (:trac:`53`).
|
|
Packit |
f09e2f |
- Added extensible infrastructure for validating translation catalogs.
|
|
Packit |
f09e2f |
- Fixed the extractor not filtering out messages that didn't validate against
|
|
Packit |
f09e2f |
the keyword's specification (:trac:`39`).
|
|
Packit |
f09e2f |
- Fixed the extractor raising an exception when encountering an empty string
|
|
Packit |
f09e2f |
msgid. It now emits a warning to stderr.
|
|
Packit |
f09e2f |
- Numerous Python message extractor fixes: it now handles nested function
|
|
Packit |
f09e2f |
calls within a gettext function call correctly, uses the correct line number
|
|
Packit |
f09e2f |
for multi-line function calls, and other small fixes (tickets :trac:`38` and
|
|
Packit |
f09e2f |
:trac:`39`).
|
|
Packit |
f09e2f |
- Improved support for detecting Python string formatting fields in message
|
|
Packit |
f09e2f |
strings (:trac:`57`).
|
|
Packit |
f09e2f |
- CLDR upgraded to the 1.5 release.
|
|
Packit |
f09e2f |
- Improved timezone formatting.
|
|
Packit |
f09e2f |
- Implemented scientific number formatting.
|
|
Packit |
f09e2f |
- Added mechanism to lookup locales by alias, for cases where browsers insist
|
|
Packit |
f09e2f |
on including only the language code in the `Accept-Language` header, and
|
|
Packit |
f09e2f |
sometimes even the incorrect language code.
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 0.8.1
|
|
Packit |
f09e2f |
-------------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
(released on July 2nd 2007)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
- `default_locale()` would fail when the value of the `LANGUAGE` environment
|
|
Packit |
f09e2f |
variable contained multiple language codes separated by colon, as is
|
|
Packit |
f09e2f |
explicitly allowed by the GNU gettext tools. As the `default_locale()`
|
|
Packit |
f09e2f |
function is called at the module level in some modules, this bug would
|
|
Packit |
f09e2f |
completely break importing these modules on systems where `LANGUAGE` is set
|
|
Packit |
f09e2f |
that way.
|
|
Packit |
f09e2f |
- The character set specified in PO template files is now respected when
|
|
Packit |
f09e2f |
creating new catalog files based on that template. This allows the use of
|
|
Packit |
f09e2f |
characters outside the ASCII range in POT files (:trac:`17`).
|
|
Packit |
f09e2f |
- The default ordering of messages in generated POT files, which is based on
|
|
Packit |
f09e2f |
the order those messages are found when walking the source tree, is no
|
|
Packit |
f09e2f |
longer subject to differences between platforms; directory and file names
|
|
Packit |
f09e2f |
are now always sorted alphabetically.
|
|
Packit |
f09e2f |
- The Python message extractor now respects the special encoding comment to be
|
|
Packit |
f09e2f |
able to handle files containing non-ASCII characters (:trac:`23`).
|
|
Packit |
f09e2f |
- Added ``N_`` (gettext noop) to the extractor's default keywords.
|
|
Packit |
f09e2f |
- Made locale string parsing more robust, and also take the script part into
|
|
Packit |
f09e2f |
account (:trac:`27`).
|
|
Packit |
f09e2f |
- Added a function to list all locales for which locale data is available.
|
|
Packit |
f09e2f |
- Added a command-line option to the `pybabel` command which prints out all
|
|
Packit |
f09e2f |
available locales (:trac:`24`).
|
|
Packit |
f09e2f |
- The name of the command-line script has been changed from just `babel` to
|
|
Packit |
f09e2f |
`pybabel` to avoid a conflict with the OpenBabel project (:trac:`34`).
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
Version 0.8
|
|
Packit |
f09e2f |
-----------
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
(released on June 20th 2007)
|
|
Packit |
f09e2f |
|
|
Packit |
f09e2f |
- First public release
|