Clean up VPOExport and friends.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Low
|
Jeroen T. Vermeulen |
Bug Description
Now that the POExport view is gone, it's becoming obvious that the vpoexport module is basically dead weight.
Some things we can clean up with relative ease:
• VPOExportSet's get_pofile_rows and get_pofile_
• A lot of elements in VPOExport are unnecessary: potemplate, template_header, language, variant, translation_
• VPOExport can take msgid_singular and msgid_plural from the POTMsgSet which is fetched anyway.
• With those gone, there's no need to keep POTMsgSet and its msgids in the join that fetches a POFile's translation rows.
More cleanups will become obvious after this; see bug 401598. The export script creates about 25M VPOExport objects when generating a full Ubuntu language pack, so eliminating just one reference from VPOExport should save at least 200 MB of data traffic on a 64-bit server (plus dict overhead).
description: | updated |
description: | updated |
Changed in rosetta: | |
milestone: | 3.0 → 2.2.8 |
Changed in rosetta: | |
status: | Fix Committed → Fix Released |
Weekend branch.