Refactor d.u.translations.trans_real to support xmb files, clean up code
|Reported by:||arb@…||Owned by:||nobody|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Right now the .mo file support is baked in pretty deep to the translations stuff. It would be useful (to me, and I've seen other people out there talking as well) if it could support other formats, such as XMB/XTB format (http://cldr.unicode.org/development/development-process/design-proposals/xmb)
In addition, looking at the code in trans_real.py it's a bit nasty, with nested functions all over the place. It could do with a bit of a cleanup/refactor.
I'm most likely going to need to do this anyway, but if there's interest I can look at contributing the code back upstream.
Change History (4)
comment:1 Changed 5 years ago by anonymous
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:2 Changed 5 years ago by jezdez
- Component changed from Uncategorized to Internationalization
- Triage Stage changed from Unreviewed to Design decision needed