Opened 14 years ago
Closed 14 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 , 14 years ago
Cc: | added |
---|
comment:2 by , 14 years ago
Easy pickings: | unset |
---|---|
milestone: | 1.4 |
Triage Stage: | Unreviewed → Accepted |
comment:3 by , 14 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 , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Closed in favor of using Ned's JsLex (r16333).
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 :)