Merge lp:~adeuring/launchpad/bug-702468 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Abel Deuring |
Approved revision: | no longer in the source branch. |
Merged at revision: | 12387 |
Proposed branch: | lp:~adeuring/launchpad/bug-702468 |
Merge into: | lp:launchpad |
Diff against target: |
98 lines (+40/-6) 2 files modified
lib/lp/translations/model/potmsgset.py (+10/-0) lib/lp/translations/tests/test_setcurrenttranslation.py (+30/-6) |
To merge this branch: | bzr merge lp:~adeuring/launchpad/bug-702468 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Henning Eggers (community) | code | Approve | |
Abel Deuring (community) | Needs Resubmitting | ||
Curtis Hovey (community) | code | Approve | |
j.c.sackett (community) | code* | Approve | |
Review via email: mp+49205@code.launchpad.net |
Commit message
[r=henninge,
Description of the change
This branch fixes bug 702468: First upstream translation does not replace Ubuntu-only translation.
The flags TranslationMess
POTMsgSet.
The bug describes the situation that we have no incumbent message
and the "twin" message (i.e. the new message) is either shared
or diverged but not shared with the other side. The decision_matrix
entries for these cases are
decision_
decision_
The treatment of the translation on the "other side" for these cases
is described by the "decision character" '*', so this branch changes
the "elif character == '*':" part of the the method _setTranslation().
The "decision character" '*' is also used in
decision_
is None:" in my patch ensures that the method behaves as before in
this case.
The existing tests in test_setcurrent
case "existing translation in Ubuntu, no translation in upstream"
already, so I only changed the expected data for the two "relevant"
tests.
test: ./bin/test -vvt lp.translations
no lint
This looks good to land.