Merge lp:~adiroiban/launchpad/bug-548999 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Aaron Bentley |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~adiroiban/launchpad/bug-548999 |
Merge into: | lp:launchpad |
Diff against target: |
192 lines (+74/-35) 2 files modified
lib/canonical/launchpad/javascript/translations/pofile.js (+22/-14) lib/lp/translations/windmill/tests/test_pofile_translate.py (+52/-21) |
To merge this branch: | bzr merge lp:~adiroiban/launchpad/bug-548999 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Aaron Bentley (community) | Approve | ||
Review via email: mp+22271@code.launchpad.net |
Commit message
Handle new translation autoselect for languages containing country code.
Description of the change
= Bug 548999 =
Then typing a new translation the radio button that selects the translation is not automatically selected for languages codes like pt_BR or en_GB.
== Proposed fix ==
Improve pofile.js initializeField
== Pre-implementation notes ==
There are no pre-implementation notes.
== Implementation details ==
I have renamed some of the variabled and add more comment to document the naming conventions for POFile translate form fields.
== Tests ==
./bin/test -t pofile_
== Demo and Q/A ==
Login as admin or a normal translator and go to an Brazilian translation page.
ie. http://
Type something in the `new translation` field.
The radio button before the new translation text input should be now selected
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files:
lib/lp/
Including variable renames makes it hard to see what your branch actually does. That could have been separated into another branch. Also, the lack of a pre-implementation discussion is generally a deal-breaker, but this is an obvious-enough bug that I'll go ahead and approve it.