Merge lp:~danilo/launchpad/recife-translation-credits into lp:~launchpad/launchpad/recife
Status: | Merged |
---|---|
Approved by: | Gavin Panella |
Approved revision: | no longer in the source branch. |
Merged at revision: | 9201 |
Proposed branch: | lp:~danilo/launchpad/recife-translation-credits |
Merge into: | lp:~launchpad/launchpad/recife |
Diff against target: |
472 lines (+183/-116) 8 files modified
lib/lp/translations/doc/pofile.txt (+0/-70) lib/lp/translations/doc/poimport.txt (+1/-2) lib/lp/translations/interfaces/translationmessage.py (+7/-0) lib/lp/translations/model/pofile.py (+10/-5) lib/lp/translations/model/potmsgset.py (+14/-9) lib/lp/translations/tests/test_pofile.py (+95/-1) lib/lp/translations/tests/test_potmsgset.py (+55/-28) lib/lp/translations/utilities/translation_import.py (+1/-1) |
To merge this branch: | bzr merge lp:~danilo/launchpad/recife-translation-credits |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Review via email: mp+41172@code.launchpad.net |
Description of the change
= Translation credits handling =
== Background ==
Update translation credits handling to use new methods (we are deprecating updateTranslation call), and adjust it to cope with the model changes.
The features that we have for translation credits handling is automatic generation on display/export to include translators working through Launchpad, and automatic creation of a stub generated message so we don't have to special case it in an otherwise slow statistics counting code (i.e. we make a translated message so you don't end up with a complete translation except the credits message, which you can't translate anyway).
== Implementation ==
The new call that should be used instead of IPOTMsgSet.
Model changes we are doing in the integration branch (the one this is proposed to be merged into) basically change the semantics of "current" and "imported" to mean "current [translation] in Ubuntu" and "current upstream".
Along the way, I've moved unit-tests for prepareTranslat
I didn't even consider fixing entire doc/pofile.txt so some lint issues remain (i.e. comparisons between very long strings: they are not a single line over 78 characters, but are multi-line strings instead).
= Tests =
bin/test -cvvt setTranslationC
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
./lib/lp/
267: source exceeds 78 characters.
458: want exceeds 78 characters.
479: want exceeds 78 characters.
985: want exceeds 78 characters.
987: want exceeds 78 characters.