Merge lp:~maclin.jun/ubiquity/fix_1304410 into lp:ubiquity
| Status: | Merged |
|---|---|
| Merged at revision: | 6256 |
| Proposed branch: | lp:~maclin.jun/ubiquity/fix_1304410 |
| Merge into: | lp:ubiquity |
| Diff against target: |
17 lines (+7/-0) 1 file modified
ubiquity/plugins/ubi-partman.py (+7/-0) |
| To merge this branch: | bzr merge lp:~maclin.jun/ubiquity/fix_1304410 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Ubuntu Installer Team | 2015-01-11 | Pending | |
| Colin Watson | 2015-01-11 | Pending | |
|
Review via email:
|
|||
Description of the Change
Add the translation process of the "edit" button in plugin ubi-partman.py.
There is a function "plugin_translate" to process "new" button and "delete" button. However no "edit" button translation in the function. This causes the bug#1304410.
| Colin Watson (cjwatson) wrote : | # |
| Michael Vogt (mvo) wrote : | # |
Hi Ma Jun, thanks a lot for your branch! It looks good, I would love to tweak it a little bit to avoid code duplication. Would something like:
"""
=== modified file 'ubiquity/
--- ubiquity/
+++ ubiquity/
@@ -1135,15 +1135,24 @@
def plugin_
- symbolic_widgets = ['partition_
- for widget_name in symbolic_widgets:
+ widgets = (
+ ('partition_
+ ('partition_
+ ('partition_
+ )
+ for widget_name, action in widgets:
widget = getattr(self, widget_name)
- text = widget.get_label()
+ text = self.controller
if len(text) == 0:
a11y = widget.
- widget.
+ if action == "empty":
+ widget.
+ elif action == "i18n":
+ widget.
+ else:
+ raise ValueError("unknown action '%s'" % action)
@plugin.
def on_partition_
"""
work? i.e. could you check if that also fixes the bug?
Thanks!
Michael
| Ma Jun (maclin.jun) wrote : | # |
Hi, Michael, thanks a lot for your reply:)
I have checked your modified codes and they worked well to solve the bug.
| Michael Vogt (mvo) wrote : | # |
Hi, thanks for testing! I merged this with my tweaks and it will be part of the next upload :)


One quick comment, but otherwise it would be better for a more active member of the installer team to review this, since I've largely moved to Launchpad development. I've requested a review from ubuntu-installer instead.