diff options
| author | uco (Open ERP) <uco@tinyerp.com> | 2010-08-26 12:46:33 +0530 |
|---|---|---|
| committer | uco (Open ERP) <uco@tinyerp.com> | 2010-08-26 12:46:33 +0530 |
| commit | 8593f3f8569206ca62cc65ea7969a4d06b318ddd (patch) | |
| tree | d49a920a26814a1dae7adf04038547197ef27299 /bin/addons/base/module/wizard/wizard_import_lang.py | |
| parent | 8ec99b95d536b385e6acf83ec85d4cd5ee2ac2db (diff) | |
[IMP] base: Improvements in views of Administration-> Translations.
bzr revid: uco@tinyerp.com-20100826071633-3flcycx3eqd43v2c
Diffstat (limited to 'bin/addons/base/module/wizard/wizard_import_lang.py')
| -rw-r--r-- | bin/addons/base/module/wizard/wizard_import_lang.py | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/bin/addons/base/module/wizard/wizard_import_lang.py b/bin/addons/base/module/wizard/wizard_import_lang.py index 471c02e8f9f..80f8048653f 100644 --- a/bin/addons/base/module/wizard/wizard_import_lang.py +++ b/bin/addons/base/module/wizard/wizard_import_lang.py @@ -27,18 +27,23 @@ from tempfile import TemporaryFile view_form="""<?xml version="1.0"?> <form string="Import language"> - <image name="gtk-dialog-info" colspan="2"/> - <group colspan="2" col="4"> - <separator string="Import New Language" colspan="4"/> - <field name="name" width="200"/> - <field name="code"/> - <field name="data" colspan="4"/> - <label string="You have to import a .CSV file which is encoded in UTF-8.\n -Please check that the first line of your file is one of the following:" colspan="4" align="0.0"/> - <label string="type,name,res_id,src,value" colspan="4"/> - <label string="module,type,name,res_id,src,value" colspan="4"/> - <label string="You can also import .po files." colspan="4" align="0.0"/> - </group> + <notebook colspan="4"> + <page string="Import Data"> + <group colspan="2" col="4"> + <separator string="Import New Language" colspan="4"/> + <field name="name" width="200"/> + <field name="code"/> + <field name="data" colspan="4"/> + </group> + </page> + <page string="Help"> + <label string="You have to import a .CSV file which is encoded in UTF-8.\n + Please check that the first line of your file is one of the following:" colspan="4" align="0.0"/> + <label string="type,name,res_id,src,value" colspan="4"/> + <label string="module,type,name,res_id,src,value" colspan="4"/> + <label string="You can also import .po files." colspan="4" align="0.0"/> + </page> + </notebook> </form>""" fields_form={ @@ -69,7 +74,7 @@ class wizard_import_lang(wizard.interface): 'actions': [], 'result': {'type': 'form', 'arch': view_form, 'fields': fields_form, 'state':[ - ('end', 'Cancel', 'gtk-cancel'), + ('end', 'Close', 'gtk-cancel'), ('finish', 'Ok', 'gtk-ok', True) ] } |
