Merge lp:~danilo/launchpad/bug-459132 into lp:launchpad
Proposed by
Данило Шеган
Status: | Merged |
---|---|
Merge reported by: | Данило Шеган |
Merged at revision: | not available |
Proposed branch: | lp:~danilo/launchpad/bug-459132 |
Merge into: | lp:launchpad |
Diff against target: |
62 lines 1 file modified
lib/lp/translations/tests/test_potmsgset.py (+22/-14) |
To merge this branch: | bzr merge lp:~danilo/launchpad/bug-459132 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Henning Eggers (community) | code | Approve | |
Review via email: mp+14210@code.launchpad.net |
To post a comment you must log in.
= Bug #459132 =
This provides scripts/ rosetta/ fix_translation _credits. py which marks all reditsToTransla ted() on each POTMsgSet.
existing untranslated credits messages as translated by calling
setTranslationC
== Implementation details ==
It collects a full list of POFiles and relevant POTMsgSets through getPOFilesWithT ranslationCredi ts, and doesn't exclude those reditsToTransla ted is implemented (first check for a
POFileSet.
which are already translated, though, because of the way
setTranslationC
shared message), it works much faster over already translated ones
(tested and confirmed in practice :).
There is a minor change to setTranslationC reditsToTransla ted to include
force_shared (so we don't mess up imported diverged and current
translations by accident), along with a new test in test_potmsgset.
The collection method in POFileSet is tested in test_pofile.
Also, full test suite run has completed and there are no test failures.
Script itself is not tested in an automated way, because it mostly
integrates all of the above. Perhaps a small "it runs" test should be
added to make sure privileges are fine.
= Demo & QA =
Run it. Run it on staging.
scripts/ rosetta/ fix_translation _credits. py -vvv
= Tests =
bin/test -vvt test_potmsgset -t test_pofile -t doc.potmsgset.txt
= Lint =
Lint is fine.