Skip to content

[Task]: Vendor enmerkar string extraction code in addons-server #16247

@diox

Description

@diox

Description

To extract strings to translate from django templates, we rely on enmerkar, a fork of the unmaintained django-babel.

enmerkar itself is no longer maintained and is broken with recent versions of setuptools... A fix has been sitting for a while unmerged. We only really need https://github.com/Zegocover/enmerkar/blob/master/enmerkar/extract.py so we should vendor that (copying the license blurb with it).

We would then need to tweak our babel.cfg file and remove the dependency on enmerkar. Note that we already have a custom wrapper around jinja's extractor configured.

Acceptance Criteria

  • enmerkar is no longer a dependency
  • jinja2 templates string extraction continues to work

┆Issue is synchronized with this Jira Task

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions