Opened 8 years ago

Closed 8 years ago

#15832 closed New feature (fixed)

Use Babel instead of xgettext for handling .po files.

Reported by: Łukasz Rekucki Owned by: nobody
Component: Internationalization Version:
Severity: Normal Keywords:
Cc: Anton Strogonoff Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Currently makemessages converts templates to pseudo-Python which is then passed to xgettext tool. Similar pattern is used for JavaScript files (using pseudo-Perl).

Babel instead provides an extensible API to define custom extractors. It also handles message catalogs without using xgettext, which removes a binary dependency from Django.

Change History (4)

comment:1 Changed 8 years ago by Anton Strogonoff

Cc: Anton Strogonoff added

comment:2 Changed 8 years ago by Jacob

Easy pickings: unset
milestone: 1.4
Triage Stage: UnreviewedAccepted

This would also fix #14045.

Marking accepted somewhat optimistically, but I think the general consensus is that we should get there eventually. Jannis, feel free to override me if I'm wrong :)

comment:3 Changed 8 years ago by Claude Paroz

I must say that after reading the corresponding thread on django-developers list, I am seduced by Ned Batchelder approach with his jslex project. I'm a bit uncomfortable with ditching away the gettext infrastructure, but it may also be related with my unfamiliarity with babel.

comment:4 Changed 8 years ago by Jannis Leidel

Resolution: fixed
Status: newclosed

Closed in favor of using Ned's JsLex (r16333).

Note: See TracTickets for help on using tickets.
Back to Top