Opened 13 years ago

Closed 13 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

Description

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 by Anton Strogonoff, 13 years ago

Cc: Anton Strogonoff added

comment:2 by Jacob, 13 years ago

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 by Claude Paroz, 13 years ago

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 by Jannis Leidel, 13 years ago

Resolution: fixed
Status: newclosed

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

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