Lingua

Latest version: v4.15.0

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

Scan your dependencies

Page 7 of 9

2.3

-------------------

- Fix incorrect invocation of legacy Babel extraction plugins. This fixes
`issue 28 <https://github.com/wichert/lingua/issues/28>`_.

- TAL template handling fixes:

- Correctly handle ``structure:`` prefixes in TAL expressions. Patch from
Ingmar Steen
(`pull request 32 <https://github.com/wichert/lingua/pull/32>`_).

- Fix handling of multi-line ``tal:content``, ``tal:define`` and ``tal:replace``
statements. Patch from Ingmar Steen
(pull requests
`35 <https://github.com/wichert/lingua/pull/35>`_ and
`36 <https://github.com/wichert/lingua/pull/36>`_).

- Fix handling of ``tal:repeat`` statements with multiple assignments. Patch
from Ingmar Steen
(`pull request 37 <https://github.com/wichert/lingua/pull/37>`_).

2.2

-------------------

- Remove seconds from POT timestamps. No other tool includes seconds, and this
appearently breaks Babel.

- Fix Python 2.6 compatibility. Patch from Hugo Branquinho
(`pull request 25 <https://github.com/wichert/lingua/pull/25>`_).

- Fix installation problems on Python 3. Patch from William Wu
(`pull request 27 <https://github.com/wichert/lingua/pull/27>`_).

- Handle TALES expression engine selection. This fixes
`issue 30 <https://github.com/wichert/lingua/issues/30>`_.

- Handle Python expressions using curly braces in HTML templates. This fixes
`issue 29 <https://github.com/wichert/lingua/issues/29>`_.

2.1

-------------------

- Do not break when encountering HTML entities in Python expressions in XML
templates.

- Show the correct linenumber in error messages for syntax errors in Python
expressions occurring in XML templates.

- Fix bug in parsing of ``tal:repeat`` and ``tal:define`` attributes in the
XML parser.

- Tweak ReST-usage in changelog so the package documentation renders correctly
on PyPI.

2.0

-------------------

- Lingua is now fully Python 3 compatible.

- Add a new ``pot-create`` command to extract translateable texts. This is
(almost) a drop-in replacement for GNU gettext's ``xgettext`` command and
replaces the use of Babel's extraction tools. For backwards compatibility
this tool can use existing Babel extraction plugins.

- Define a new extraction plugin API which enables several improvements to
be made:

- You can now select which domain to extract from files. This is currently
only supported by the XML and ZCML extractors.
- Format strings checks are now handled by the extraction plugin instead of
applied globally. This prevents false positives.
- Message contexts are fully supported.

- Format string detection has been improved: both C and Python format strings
are now handled correctly.

- The XML/HTML extractor has been rewritten to use HTML parser from Chameleon_.
This allows lingua to handle HTML files that are not valid XML.

- Whitespace handling in XML extractor has been improved..

- The po-xls conversion tools have been moved to a new `po-xls
<https://github.com/wichert/po-xls>`_ package.

1.6

----------------------

- Add support for ngettext and pluralize() for correctly generating plurals in
pot files.

1.5

-------------------

- Do not silently ignore XML parsing errors. Instead print an error message
and abort.

Page 7 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.