<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="wizard_lang_export" model="ir.ui.view">
            <field name="name">Export a Translation File</field>
            <field name="model">base.language.export</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Export language">
                    <notebook>
                        <page string="Export Data">
                            <group colspan="4" states="choose">
                                <separator colspan="4" string="Export translation file"/>
                                <field name="lang" required="1"/>
                                <field name="format" required="1"/>
                                <field height="200" name="modules" nolabel="1" colspan="4"/>
                                <field invisible="1" name="state"/>
                            </group>
                            <group colspan="4" states="get">
                                <separator string="Export done" colspan="4"/>
                                <field name="name" invisible="1" colspan="4"/>
                                <field name="data" nolabel="1" readonly="1" fieldname="name" colspan="4"/>
                                <field height="80" name="advice" nolabel="1" colspan="4"/>
                            </group>
                            <separator string="" colspan="4"/>
                                <group col="2" colspan="2">
                                </group>
                                <group col="2" colspan="2">
                                    <button icon="gtk-cancel" name="act_cancel" special="cancel" states="choose" string="_Cancel" type="object"/>
                                    <button icon="gtk-ok" name="act_getfile" states="choose" string="_Export" type="object"></button>
                                    <button icon="gtk-cancel" name="act_destroy" special="cancel" states="get" string="_Cancel" type="object"/>
                                </group>
                        </page>
                        <page string="Help">
                            <label align="0.0" colspan="4" string="The official translations pack of all OpenERP/OpenObjects module are managed through launchpad. We use their online interface to synchronize all translations efforts."/>
                            <label align="0.0" colspan="4" string="To improve some terms of the official translations of OpenERP, you should modify the terms directly on the launchpad interface. If you made lots of translations for your own module, you can also publish all your translation at once."/>
                            <label align="0.0" colspan="4" string="To browse official translations, you can visit this link: "/>
                            <label align="0.0" colspan="4" string="https://translations.launchpad.net/openobject"/>
                        </page>
                    </notebook>
                </form>
            </field>
        </record>

        <record id="action_wizard_lang_export" model="ir.actions.act_window">
            <field name="name">Export a Translation File</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">base.language.export</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
        </record>
        <menuitem action="action_wizard_lang_export" id="menu_wizard_lang_export" parent="menu_translation_export"/>
    </data>
</openerp>
