Merge lp:~yuningdodo/ubiquity/fix-lang-trans-page into lp:ubiquity
Proposed by
Yu Ning
Status: | Rejected |
---|---|
Rejected by: | Dimitri John Ledkov |
Proposed branch: | lp:~yuningdodo/ubiquity/fix-lang-trans-page |
Merge into: | lp:ubiquity |
Diff against target: |
25 lines (+4/-0) 2 files modified
ubiquity/frontend/gtk_ui.py (+3/-0) ubiquity/i18n.py (+1/-0) |
To merge this branch: | bzr merge lp:~yuningdodo/ubiquity/fix-lang-trans-page |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Needs Fixing | ||
Review via email: mp+121122@code.launchpad.net |
Description of the change
Hi ubiquity developer,
There is a problem in the ubiquity language selection page, that when you select different language the widgets inside the notebook got translated immediately as expected, while the widgets outside the notebook never got updated.
This may not be a big issue, and to fix it we do not need much to change in the code.
Please review my patch and ask me to improve it.
Thanks,
Ning
To post a comment you must log in.
On Fri, Aug 24, 2012 at 06:15:28AM -0000, Yu Ning wrote:
> There is a problem in the ubiquity language selection page, that when
> you select different language the widgets inside the notebook got
> translated immediately as expected, while the widgets outside the
> notebook never got updated.
The language page's cleanup handler calls translate with just_me=False,
which should already have the effect of retranslating all widgets. It's
intentional (for performance) that they aren't retranslated immediately
upon selecting a different language, but they should be retranslated
when you leave the language page.
Therefore, if this patch has any effect, it suggests that perhaps this
segment of code is failing to work properly:
for toplevel in self.toplevels:
for c in self.all_ children( toplevel) :
widgets. append( (c, None))
if toplevel.get_name() != 'live_installer':
Or perhaps something else in that general area.
At any rate, I don't think we should apply this patch directly because I
would expect it to slow down navigation through the language selection
list box quite noticeably; but perhaps this review will help find the
true problem, or perhaps if you can describe the problem a bit more then
we can dig into it (although I'm on vacation for the next week).
review needs-fixing