Lingua

Latest version: v4.15.0

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

Scan your dependencies

Page 4 of 9

4.0

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

- Rewrite the Python extractor again. Lingua will now parse Python code itself
instead of using the Python ``ast`` module.

- Support message comments in Python code. These can be put in lines immediately
before a line containing a message, and must be prefixed with a special marker.

- Use domain filtering for Python expressions where possible (i.e. when using
translaction functions that take a domain parameter, such as ``dgettext``.

- Fix --no-location option to actually work.

- Add --no-linenumbers option.

3.12

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

- Fix HTML extractor to apply domain filter when processing attributes and
``${..}`` expressions. This fixes `issue 66
<https://github.com/wichert/lingua/issues/66>`_

- Fix line number reporting when processing instructions are used.
`Patch 64 <https://github.com/wichert/lingua/pull/64>`_ from
Florian Schulze.

- Fix handling of extractor configuration.
`Patch 63 <https://github.com/wichert/lingua/pull/63>`_ from
Stéphane Brunner.

3.11

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

- Correctly handle Python expressions using braces in template text. This fixes
`issue 62 <https://github.com/wichert/lingua/issues/62>`_.

3.10

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

- Update ``i18n.sh`` example to show statistics when compiling catalogs. This
reveals catalogs with fuzzy messages. This fixes `issue 59
<https://github.com/wichert/lingua/issues/59>`_.

- Fix handling of line number parameter in the Python extractor. This fixes
invalid line numbers generated for Python code embedded in other files,
for example in Mako templates. This fixes `issue 58
<https://github.com/wichert/lingua/issues/58>`_ based on a fix from
Laurent Daverio.

- Warn when using a function call instead of a string as parameter in a
gettext keyword in Python code. This fixes `issue 57
<https://github.com/wichert/lingua/issues/57>`_.

3.9

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

- Fix line number reporting for XML/zope/Chameleon extractors.
`Pull request 53 <https://github.com/wichert/lingua/pull/53>`_
from Florian Schulze.

3.8

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

- Add options to sort messages by either location or message id when creating a
POT file. Based on `pull request 51 <https://github.com/wichert/lingua/pull/51>`_
from Emanuele Gaifas.

Page 4 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.