summaryrefslogtreecommitdiff
path: root/bin/addons/base/module/wizard
diff options
context:
space:
mode:
authoruco (Open ERP) <uco@tinyerp.com>2010-08-26 12:46:33 +0530
committeruco (Open ERP) <uco@tinyerp.com>2010-08-26 12:46:33 +0530
commit8593f3f8569206ca62cc65ea7969a4d06b318ddd (patch)
treed49a920a26814a1dae7adf04038547197ef27299 /bin/addons/base/module/wizard
parent8ec99b95d536b385e6acf83ec85d4cd5ee2ac2db (diff)
[IMP] base: Improvements in views of Administration-> Translations.
bzr revid: uco@tinyerp.com-20100826071633-3flcycx3eqd43v2c
Diffstat (limited to 'bin/addons/base/module/wizard')
-rw-r--r--bin/addons/base/module/wizard/wizard_import_lang.py31
-rw-r--r--bin/addons/base/module/wizard/wizard_module_lang_install.py5
2 files changed, 20 insertions, 16 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)
]
}
diff --git a/bin/addons/base/module/wizard/wizard_module_lang_install.py b/bin/addons/base/module/wizard/wizard_module_lang_install.py
index 7367bdb4baa..f8ce50cfb5a 100644
--- a/bin/addons/base/module/wizard/wizard_module_lang_install.py
+++ b/bin/addons/base/module/wizard/wizard_module_lang_install.py
@@ -34,10 +34,8 @@ view_form_end = """<?xml version="1.0"?>
view_form = """<?xml version="1.0"?>
<form string="System Upgrade">
- <image name="gtk-dialog-info" colspan="2"/>
<group colspan="2" col="4">
<separator string="System Upgrade" colspan="4"/>
- <label align="0.0" string="Choose a language to install:" colspan="4"/>
<field name="lang" colspan="4" required="1"/>
<label align="0.0" string="Note that this operation may take a few minutes." colspan="4"/>
</group>
@@ -55,6 +53,7 @@ class wizard_lang_install(wizard.interface):
fields_form = {
'lang': {'string':'Language', 'type':'selection', 'selection':tools.scan_languages(),
+ 'help': 'Choose a language to install.',
},
}
@@ -63,7 +62,7 @@ class wizard_lang_install(wizard.interface):
'actions': [],
'result': {'type': 'form', 'arch': view_form, 'fields': fields_form,
'state': [
- ('end', 'Cancel', 'gtk-cancel'),
+ ('end', 'Close', 'gtk-cancel'),
('start', 'Start installation', 'gtk-ok', True)
]
}