Modify ↓
Ticket #91 (assigned enhancement)
pybabel extract should support specifying modules
| Reported by: | anonymous | Owned by: | jruigrok |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.0 |
| Component: | Message Extraction | Version: | devel |
| Keywords: | patch | Cc: |
Description
The pybabel extract command currently only supports directories, which doesn't allow you to extract strings from specific modules.
There's extract_from_file in messages.extract, so it seems like it would just be a matter of adding support in the front-end for it.
Attachments
Change History
Changed 4 years ago by dackze+babel@…
- Attachment extract_file.patch added
comment:1 Changed 4 years ago by dackze+babel@…
I've attached a patch that implements what I've suggested. The indentation starts to get pretty hair with the extra if/else block, but it all works fine.
Changed 4 years ago by dackze+babel@…
- Attachment extract_file.2.patch added
Patch that implements module support (and logs each extraction)
Note: See
TracTickets for help on using
tickets.

Patch that implements module support