Need a script which uses the Rosetta internal XML parser to check upstream Mozilla translations
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Wishlist
|
Jeroen T. Vermeulen |
Bug Description
Rationale:
Currently when uploading Mozilla translations into Rosetta, certain languages fail to import, because of syntax or format bugs in the .dtd or .manifest files included in the XPI tarball. These bugs do not get detected by upstream developers/
I currently fix those issues manually, rebuild the XPI tarballs and upload them again to Rosetta until they get accepted. This sometimes needs multiple attempts, since there are often multiple bugs in the XPI tarballs and the XML parser bails out at the first one it finds.
What's more, those bugs, even when sent with patches to upstream, don't get fixed in the actual stable release which we are importing in Rosetta, but with chance in the current development tree. However, since the directory structure in the XPI tarballs and the upstream Mercurial VCS don't match, the patches I generate against the XPI tarballs are pretty useless for upstream translators.
Therefor I'd like to be able to check all .dtd and .manifest files in the upstream VCS with the Launchpad XML parser to be able to fix those issues before the translations get released in the next stable release.
Since Launchpad wants to import upstream sources, I think this script would be a very useful asset, too.
Related branches
- Brad Crittenden (community): Approve (code)
-
Diff: 461 lines (+317/-10)7 files modifiedlib/lp/translations/scripts/tests/test-data/minimal.pot (+8/-0)
lib/lp/translations/scripts/tests/test_validate_translations_file.py (+131/-0)
lib/lp/translations/scripts/validate_translations_file.py (+130/-0)
lib/lp/translations/utilities/mozilla_xpi_importer.py (+2/-0)
lib/lp/translations/utilities/tests/test_xpi_manifest.py (+21/-10)
lib/lp/translations/utilities/xpi_manifest.py (+7/-0)
scripts/rosetta/validate-translations-file.py (+18/-0)
Changed in rosetta: | |
importance: | Undecided → Medium |
assignee: | nobody → Jeroen T. Vermeulen (jtv) |
status: | New → In Progress |
milestone: | none → 10.01 |
Changed in rosetta: | |
importance: | Medium → Wishlist |
summary: |
- [Wishlist] Need a script which uses the Rosetta internal XML parser to - check upstream Mozilla translations + Need a script which uses the Rosetta internal XML parser to check + upstream Mozilla translations |
Changed in rosetta: | |
status: | Fix Committed → Fix Released |
This bug was mentioned in stable r10123 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 10123>