Translation approval stumbles over divergence
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Jeroen T. Vermeulen |
Bug Description
Approving a translation message seems to break when divergence is involved (and therefore the message needs to be cloned).
The reason is that POTMsgSet.
Other call sites actually do seem to pass a dict, but _approveTranslation passes a list. We didn't notice this because it's fairly unusual for _approveTranslation to create a new message, and unit tests would pass a list instead. We should update the documentation and just use a dict in all cases.
OOPS-1839EA1279, OOPS-1839EA1302, OOPS-1839EA1310, OOPS-1839ED1147, OOPS-1839EE1253
OOPS-1839EE1270
Related branches
- Curtis Hovey (community): Approve (code)
-
Diff: 94 lines (+29/-12)3 files modifiedlib/lp/translations/model/potmsgset.py (+3/-4)
lib/lp/translations/tests/test_potmsgset.py (+0/-7)
lib/lp/translations/tests/test_translationmessage.py (+26/-1)
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
Fixed in stable r12221 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 12221>.