Lingua

Latest version: v4.15.0

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

Scan your dependencies

Page 6 of 9

3.3

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

- Modify the message format-checker to not consider a space ofter a percent-
character as a format flag. Space is a valid flag but is almost never used,
and this was creating a lot of false positives (for example a sentence like
"take a sample of 5% of all candidates").

- Do not try to extract a message from ``N_()`` calls: these are explicitly
intended to be used for situations where you pass in a variable instead of
a string.

3.2

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

- Refactor the extractor API a little bit to make it easier for extractors
to call each other. This is particularly useful when an extractor needs to
call the Python extractor to handle local Python expressions.

- Correctly extract messages from empty elements that used HTML notation. This
fixes `issue 48 <https://github.com/wichert/lingua/issues/48>`_.

3.1

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

- Make sure two message strings are added when a plural message is encountered.
This fixes an error from `msginit` when it sees ``msgid_plural`` but only a
single ``msgstr``

3.0

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

*Zope users*: this release changes the extraction for `.pt` files. You will
need to configure lingua to use the new ``zope`` extractor for ``.pt`` files.

- Make it possible to configure Babel plugins.

- Include a brief description in ``--list-extractors`` output.

- Rename the ``xml`` extractor to ``chameleon`` to better fit the syntax it
handles.

- Add a new ``zope`` extractor. This is identical to the chameleon extractor,
but changes the default expression engine used to TALES. This engine is now
the default for ``.cpt`` and ``.zpt`` files.

- Allow per-extractor configuration.

- Fix handling of comments returned by Babel extractor plugins. This fixes
`issue 44 <https://github.com/wichert/lingua/issues/44>`_.

2.5

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

- Correct handling of alternatives in TALES expressions when the pipe-symbol
was surrounded by whitespace. This fixes
`issue 43 <https://github.com/wichert/lingua/issues/43>`_.

- Extractors can now be hooked up from outside via entry points.

- Introduce ``lingua.extractors.Extractor`` object and use it as base for
all extractors.

- Check for global ``.config/lingua`` config file in user's home directory if
no explicit config file defined.

- Fix error message when detecting a syntax error in scanned Python code. Patch
from tisdall (`pull request 42
<https://github.com/wichert/lingua/pull/42>`_).

- Use a single wheel distrbution for Python 2 and Python 3.

2.4

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

- Correctly handle multiple alternatives in ZPT expressions. This fixes
`issue 39 <https://github.com/wichert/lingua/issues/39>`_.

- Do not add ``c-format`` flag for messages without an percent-character.

- Fix timezone format at pot creation (remove colon).

Page 6 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.