Merge lp:~jtv/launchpad/recife-review into lp:~launchpad/launchpad/recife
Status: | Merged |
---|---|
Approved by: | Tim Penhey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 9159 |
Proposed branch: | lp:~jtv/launchpad/recife-review |
Merge into: | lp:~launchpad/launchpad/recife |
Diff against target: |
201 lines (+67/-66) 3 files modified
lib/lp/translations/model/potmsgset.py (+4/-42) lib/lp/translations/model/translationmessage.py (+1/-1) lib/lp/translations/tests/test_clearcurrenttranslation.py (+62/-23) |
To merge this branch: | bzr merge lp:~jtv/launchpad/recife-review |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tim Penhey (community) | Approve | ||
Review via email: mp+33183@code.launchpad.net |
Commit message
Review messages in clearCurrentTra
Description of the change
= Set messages as reviewed =
For the Recife feature branch.
When a TranslationMessage is selected to be a message's current translation, we update its review date (so we can later see which suggestions came in since last review) and keep track of its reviewer. Here I implement this for the Recife data model which is to replace our current one.
We have agreed not to do this in setCurrentTrans
We do have a standard way of dealing with this: create an empty TranslationMessage. This will show up as "untranslated," just like the absence of a current TM does, but it also acts as a review marker to compare suggestions' submission dates against.
Adding a message gets complicated: what of divergence, what of tracking between upstream and Ubuntu, what of existing messages, what of clashes between demoted diverged messages and existing shared ones? Rather than deal with it all again, I just call setCurrentTrans
We also gained some helpful factory methods for TranslationMessages since the original clearCurrentTra
To test,
{{{
./bin/test -vvc -m lp.translations
}}}
(I decapitalized the test name).
No lint.
Jeroen
All comments were on IRC :)