Merge lp:~henninge/launchpad/devel-bugjamming-2 into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Henning Eggers on 2010-12-23 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 12148 |
| Proposed branch: | lp:~henninge/launchpad/devel-bugjamming-2 |
| Merge into: | lp:launchpad |
| Diff against target: |
327 lines (+95/-31) 8 files modified
lib/lp/translations/browser/person.py (+4/-0) lib/lp/translations/browser/tests/test_persontranslationview.py (+45/-11) lib/lp/translations/browser/translationmessage.py (+11/-5) lib/lp/translations/stories/standalone/xx-pofile-translate-alternative-language.txt (+21/-8) lib/lp/translations/stories/standalone/xx-translations-to-review.txt (+2/-2) lib/lp/translations/templates/person-translations-to-complete-table.pt (+4/-2) lib/lp/translations/templates/person-translations-to-review-table.pt (+4/-2) lib/lp/translations/templates/person-translations-to-review.pt (+4/-1) |
| To merge this branch: | bzr merge lp:~henninge/launchpad/devel-bugjamming-2 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Brad Crittenden (community) | code | Approve on 2010-12-23 | |
| j.c.sackett (community) | code* | 2010-12-23 | Approve on 2010-12-23 |
| Curtis Hovey (community) | ui | 2010-12-23 | Approve on 2010-12-23 |
|
Review via email:
|
|||
Commit Message
[r=bac,
Description of the Change
= Summary =
Fixes two bugs:
Bug 560701: "Not showing suggestions from selected alternative
language" warning should link to edit languages page
Bug 440406: Translations overview should state language code
== Proposed fix ==
Add a link to the user's +editlanguages page to the message.
List languages in person translation tables. The languages can be
extracted from the list of pofiles that is covered by the given
statistic.
== Pre-implementation notes ==
Trivial, no pre-imp.
== Implementation details ==
Pretty straightforward, not much to explain.
The _makePOFiles helper method in test_persontran
be adapted to create files for multiple languages but in the same
POTemplate, so they can get aggretated into one.
In that file I also removed the references to the hard-coded language
(Dutch) and used generic languages, which is possible nowadays.
== Tests ==
bin/test -vvcm lp.translations \
-t xx-pofile-
-t test_getTargets
-t xx-translations
== Demo and Q/A ==
For bug 560701:
Go to the page listed in the bug and verify that the message
contains a link to +editlanguages.
For bug 440406:
Got to https:/
the languages are listed on each line on the table.
= Launchpad lint =
I removed some lint. Yeah!
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/
337: E301 expected 1 blank line, found 2
365: E301 expected 1 blank line, found 2
509: E301 expected 1 blank line, found 2
744: E301 expected 1 blank line, found 2
827: E301 expected 1 blank line, found 2
1357: E301 expected 1 blank line, found 2
./lib/lp/
363: E202 whitespace before ']'
| Henning Eggers (henninge) wrote : | # |
| j.c.sackett (jcsackett) wrote : | # |
Henninge--
This all looks good to me.
I do think the language shown to the user (which existed prior to this branch) is a little clunky. Maybe get Revell to take a look?
| Brad Crittenden (bac) wrote : | # |
Looks good Henning.
When sorting a set you do not need to call list() first.
Otherwise it looks good.
| Henning Eggers (henninge) wrote : | # |
Thanks for the reviews. I agree that the page could possibly look and "sound" better but I am too tired to do anything about it now...
I removed the superfluous list().

For the UI review:
Bug 560701: people. canonical. com/~henninge/ screenshots/ alternative- language- editlanguages. png
http://
Bug 440406: people. canonical. com/~henninge/ screenshots/ translations- to-complete- languages. png
http://