Zope.i18n

Latest version: v5.1

Safety actively analyzes 629004 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 6

4.3.0

==================

- Ensure that all files are properly closed when compiling .mo files,
such as when the ``registerTranslations`` ZCML directive is used.

- Remove the private ``_compat`` module and its utility function ``_u``
in favor of Unicode literals.

- ``TranslationDomain`` no longer extends ``SimpleTranslationDomain``.
It overrode every method and didn't properly initialize the super
class. ``TranslationDomain`` continues to implement ``ITranslationDomain``.

- ``TranslationDomain`` and ``GettextMessageCatalog`` now ensure that
their ``domain`` and ``language`` attributes are text in order to
match their respective interfaces. Byte strings (such as native
string literals on Python 2) are decoded using UTF-8.

- Fix ``LocaleCalendar.getFirstWeekDayName``. Previously it raised a
KeyError when the ``week`` mapping contained an integer for
``firstDay`` as documented.

- Reach 100% test coverage and maintain in through tox.ini and
coveralls.io.

- Override ``values`` in ``InheritingDictionary``. Previously it
implemented a separate ``value`` method by mistake.

- Fix parsing times with a timezone. Previously it could raise a
``TypeError``.

4.2.0

==================

- Better error message on PO-File Syntax Errors. [SyZn]

- Add support for Python 3.5 and 3.6.

- Drop support for Python 2.6, 3.2 and 3.3.

- Support for formatting really small numbers, e.g. 1e-9. These numbers needs
special treatment, because standard str(x) collapses them to scientific
representation.

- Support for specifying rounding in NumberFormatter. This is required in some
cases, e.g. when you format a Decimal('0.9999') that sould not be rounded.
Currently, formatting Decimal('0.99999') will raise a TypeError if rounding
is not set to False

4.1.0

==================

- ``interpolate()`` now works recursively, if the mapping has a value which is
a ``zope.i18nmessageid.Message`` itself.

4.0.1

==================

- Add support for Python 3.2 and PyPy3.

4.0.0

==================

- Add support for testing with Travis.

- Add explicit support for Python 3.4 and PyPy.

4.0.0a4

====================

- Restore zope.i18n.testing.{setUp,PlacelessSetup} that got lost in 4.0.0a3.
These require zope.publisher, which is not ported to Python 3 yet, so I
haven't added it back to install_requires in setup.py. User beware.

Page 3 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.