I18ndude

Latest version: v6.2.0

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

Scan your dependencies

Page 4 of 8

4.3

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

New:

- Support Chameleon repeat syntax in templates.
Fixes `issue 36 <https://github.com/collective/i18ndude/issues/36>`_.
[maurits]

- Moved ``plone.i18n`` dependency to a ``plone`` extra.
This is only used for getting language names in the ``list`` command.
We now fall back to using the language name that is in the ``po`` files.
Fixes `issue 44 <https://github.com/collective/i18ndude/issues/44>`_.
[maurits]

4.2

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

New:

- In ``find-untranslated``, do not report items that get replaced by Chameleon syntax.
So ``<span>${view/test}</span>`` will no longer get flagged as missing a translation.
(Note that you still *can* add ``i18n:translate`` if it makes sense,
like Plone does for translating the dynamically calculated review state.)
[Netroxen, maurits]

- Find untranslated attributes now also checks for 'placeholder' attributes on
input tags.

4.1

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

New:

- Allow use of regular expressions for --exclude parameter. For example,
use ``*.py`` to exclude all python files. This doesn't break existing
behavior. Do remember to use quotes around the expression.
[laulaz, maurits]

4.0.1

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

Fixes:

- Fixed some reported line numbers in find-untranslated.
Fixes issue 34.
[maurits]

4.0.0

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

New:

- Extract strings from zcml.
Issue 28
[maurits]

- No longer print two blank lines at the end of .po and .pot files.
[maurits]

- In the find-untranslated command, first try to parse a template as
xml, which is good for non-html files. If that fails, try to parse
it as html with a little help from the lxml HTMLPaser, which handles
html5 code much better. If that fails, use our trusty home grown
``common.prepare_xml`` function, which treats everything as old
html. Note that we still use ``xml.sax`` as the core parser here.
Issue 15
[maurits]

- Ignore hidden files in the find-untranslated command.
Issue 29
[maurits]

- Use lxml instead of xml.etree or elementtree for parsing
GenericSetup xml files.
[maurits]

3.4.5

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

New:

- First try the original zope.tal parser. Only when this fails we try
our own parser/generator.
[maurits]

- Support Chameleon unnamed attributes without crashing. For example:
``tal:attributes="python:{'data-something': 'chameleon-only'}"``
[maurits]

- Support chameleon attributes tal:switch and tal:case.
Fixes issue 24.
[ale-rt]

Page 4 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.