<?xml version="1.0"?>
<!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
    <data>
        <record model="ir.ui.view" id="translation_view_form">
            <field name="model">ir.translation</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
              <![CDATA[
                <form string="Translations" col="6">
                    <label name="name"/>
                    <field name="name"/>
                    <label name="type"/>
                    <field name="type"/>
                    <label name="res_id"/>
                    <field name="res_id"/>
                    <label name="fuzzy"/>
                    <field name="fuzzy"/>
                    <label name="lang"/>
                    <field name="lang"/>
                    <label name="module"/>
                    <field name="module"/>
                    <group col="2" colspan="6" yexpand="1" yfill="1" id="src_value">
                        <separator name="src"/>
                        <separator name="value"/>
                        <field name="src"/>
                        <field name="value" spell="Eval('lang')"/>
                    </group>
                </form>
                ]]>
            </field>
        </record>
        <record model="ir.ui.view" id="translation_view_tree">
            <field name="model">ir.translation</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
              <![CDATA[
                <tree string="Translations" editable="bottom">
                    <field name="src"/>
                    <field name="value"/>
                    <field name="fuzzy"/>
                    <field name="name"/>
                    <field name="lang"/>
                    <field name="type"/>
                    <field name="res_id"/>
                    <field name="module"/>
                </tree>
              ]]>
            </field>
        </record>
        <record model="ir.action.act_window" id="act_translation_form">
            <field name="name">Translations</field>
            <field name="res_model">ir.translation</field>
            <field name="domain">[('module', '!=', False)]</field>
        </record>
        <record model="ir.action.act_window.view"
            id="act_translation_form_view1">
            <field name="sequence" eval="1"/>
            <field name="view" ref="translation_view_tree"/>
            <field name="act_window" ref="act_translation_form"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_translation_form_view2">
            <field name="sequence" eval="2"/>
            <field name="view" ref="translation_view_form"/>
            <field name="act_window" ref="act_translation_form"/>
        </record>
        <menuitem name="Translations" parent="menu_localization"
            action="act_translation_form" id="menu_translation_form"/>

        <record model="ir.translation" id="translation_delete_xml_record">
            <field name="name">delete_xml_record</field>
            <field name="lang">en_US</field>
            <field name="type">error</field>
            <field name="src">You are not allowed to delete this record.</field>
            <field name="value">You are not allowed to delete this record.</field>
            <field name="module">ir</field>
            <field name="fuzzy" eval="False"/>
        </record>
        <record model="ir.translation" id="translation_xml_record_desc">
            <field name="name">xml_record_desc</field>
            <field name="lang">en_US</field>
            <field name="type">error</field>
            <field name="src">This record is part of the base configuration.</field>
            <field name="value">This record is part of the base configuration.</field>
            <field name="module">ir</field>
            <field name="fuzzy" eval="False"/>
        </record>
        <record model="ir.translation" id="translation_write_xml_record">
            <field name="name">write_xml_record</field>
            <field name="lang">en_US</field>
            <field name="type">error</field>
            <field name="src">You are not allowed to modify this record.</field>
            <field name="value">You are not allowed to modify this record.</field>
            <field name="module">ir</field>
            <field name="fuzzy" eval="False"/>
        </record>
        <record model="ir.translation" id="translation_not_found_in_selection">
            <field name="name">not_found_in_selection</field>
            <field name="lang">en_US</field>
            <field name="type">error</field>
            <field name="src">Key %r not found in selection field %r</field>
            <field name="value">Key %r not found in selection field %r</field>
            <field name="module">ir</field>
            <field name="fuzzy" eval="False"/>
        </record>
        <record model="ir.translation" id="translation_relation_not_found">
            <field name="name">relation_not_found</field>
            <field name="lang">en_US</field>
            <field name="type">error</field>
            <field name="src">Relation not found: %r in %s</field>
            <field name="value">Relation not found: %r in %s</field>
            <field name="module">ir</field>
            <field name="fuzzy" eval="False"/>
        </record>
        <record model="ir.translation" id="translation_too_many_relations_found">
            <field name="name">too_many_relations_found</field>
            <field name="lang">en_US</field>
            <field name="type">error</field>
            <field name="src">Too many relations found: %r in %s</field>
            <field name="value">Too many relations found: %r in %s</field>
            <field name="module">ir</field>
            <field name="fuzzy" eval="False"/>
        </record>
        <record model="ir.translation" id="translation_xml_id_syntax_error">
            <field name="name">xml_id_syntax_error</field>
            <field name="lang">en_US</field>
            <field name="type">error</field>
            <field name="src">Syntax error for XML id %r in %s</field>
            <field name="value">Syntax error for XML id %r in %s</field>
            <field name="module">ir</field>
            <field name="fuzzy" eval="False"/>
        </record>
        <record model="ir.translation" id="translation_reference_syntax_error">
            <field name="name">reference_syntax_error</field>
            <field name="lang">en_US</field>
            <field name="type">error</field>
            <field name="src">Syntax error for reference %r in %s</field>
            <field name="value">Syntax error for reference %r in %s</field>
            <field name="module">ir</field>
            <field name="fuzzy" eval="False"/>
        </record>
        <record model="ir.translation" id="translation_domain_validation_record">
            <field name="name">domain_validation_record</field>
            <field name="lang">en_US</field>
            <field name="type">error</field>
            <field name="src">The value of the field "%s" on "%s" is not valid according to its domain.</field>
            <field name="value">The value of the field "%s" on "%s" is not valid according to its domain.</field>
            <field name="module">ir</field>
            <field name="fuzzy" eval="False"/>
        </record>
        <record model="ir.translation" id="translation_required_validation_record">
            <field name="name">required_validation_record</field>
            <field name="lang">en_US</field>
            <field name="type">error</field>
            <field name="src">The field "%s" on "%s" is required.</field>
            <field name="value">The field "%s" on "%s" is required.</field>
            <field name="module">ir</field>
            <field name="fuzzy" eval="False"/>
        </record>
        <record model="ir.translation" id="translation_size_validation_record">
            <field name="name">size_validation_record</field>
            <field name="lang">en_US</field>
            <field name="type">error</field>
            <field name="src">The field "%s" on "%s" is too long.</field>
            <field name="value">The field "%s" on "%s" is too long.</field>
            <field name="module">ir</field>
            <field name="fuzzy" eval="False"/>
        </record>
        <record model="ir.translation" id="translation_digits_validation_record">
            <field name="name">digits_validation_record</field>
            <field name="lang">en_US</field>
            <field name="type">error</field>
            <field name="src">The field "%s" on "%s" has too many decimal digits.</field>
            <field name="value">The field "%s" on "%s" has too many decimal digits.</field>
            <field name="module">ir</field>
            <field name="fuzzy" eval="False"/>
        </record>
        <record model="ir.translation" id="translation_access_error">
            <field name="name">access_error</field>
            <field name="lang">en_US</field>
            <field name="type">error</field>
            <field name="src">You try to bypass an access rule!
(Document type: %s)</field>
            <field name="value">You try to bypass an access rule!
(Document type: %s)</field>
            <field name="module">ir</field>
            <field name="fuzzy" eval="False"/>
        </record>
        <record model="ir.translation" id="translation_read_error">
            <field name="name">read_error</field>
            <field name="lang">en_US</field>
            <field name="type">error</field>
            <field name="src">You try to read records that don't exist anymore!
(Document type: %s)</field>
            <field name="value">You try to read records that don't exist anymore!
(Document type: %s)</field>
            <field name="module">ir</field>
            <field name="fuzzy" eval="False"/>
        </record>
        <record model="ir.translation" id="translation_write_error">
            <field name="name">write_error</field>
            <field name="lang">en_US</field>
            <field name="type">error</field>
            <field name="src">You try to write on records that don't exist anymore!
(Document type: %s)</field>
            <field name="value">You try to write on records that don't exist anymore!
(Document type: %s)</field>
            <field name="module">ir</field>
            <field name="fuzzy" eval="False"/>
        </record>
        <record model="ir.translation" id="translation_required_field">
            <field name="name">required_field</field>
            <field name="lang">en_US</field>
            <field name="type">error</field>
            <field name="src">The field "%s" on "%s" is required.</field>
            <field name="value">The field "%s" on "%s" is required.</field>
            <field name="module">ir</field>
            <field name="fuzzy" eval="False"/>
        </record>
        <record model="ir.translation" id="translation_foreign_model_missing">
            <field name="name">foreign_model_missing</field>
            <field name="lang">en_US</field>
            <field name="type">error</field>
            <field name="src">The value of field "%s" on "%s" doesn't exist.</field>
            <field name="value">The value of field "%s" on "%s" doesn't exist.</field>
            <field name="module">ir</field>
            <field name="fuzzy" eval="False"/>
        </record>
        <record model="ir.translation" id="translation_foreign_model_exist">
            <field name="name">foreign_model_exist</field>
            <field name="lang">en_US</field>
            <field name="type">error</field>
            <field name="src">Could not delete "%s" records because they are used on field "%s" of "%s".</field>
            <field name="value">Could not delete "%s" records because they are used on field "%s" of "%s".</field>
            <field name="module">ir</field>
            <field name="fuzzy" eval="False"/>
        </record>
        <record model="ir.translation" id="translation_search_function_missing">
            <field name="name">search_function_missing</field>
            <field name="lang">en_US</field>
            <field name="type">error</field>
            <field name="src">Missing search function on field "%s".</field>
            <field name="value">Missing search function on field "%s".</field>
            <field name="module">ir</field>
            <field name="fuzzy" eval="False"/>
        </record>

        <record model="ir.ui.view" id="translation_set_report_start_view_form">
            <field name="model">ir.translation.set_report.start</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <![CDATA[
                <form string="Set Report Translations" col="2">
                    <image name="tryton-dialog-information" xexpand="0" xfill="0"/>
                    <label string="Synchronize Report Translations?" id="synchronize"
                        yalign="0.0" xalign="0.0" xexpand="1"/>
                </form>
                ]]>
            </field>
        </record>

        <record model="ir.ui.view" id="translation_set_report_succeed_view_form">
            <field name="model">ir.translation.set_report.succeed</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <![CDATA[
                <form string="Set Report Translations" col="2">
                    <image name="tryton-dialog-information" xexpand="0" xfill="0"/>
                    <label string="Set Translations Succeed!" id="succeed"
                        yalign="0.0" xalign="0.0" xexpand="1"/>
                </form>
                ]]>
            </field>
        </record>

        <record model="ir.action.wizard" id="act_translation_set_report">
            <field name="name">Set Report Translations</field>
            <field name="wiz_name">ir.translation.set_report</field>
        </record>
        <menuitem name="Set Report Translations"
            parent="menu_localization"
            action="act_translation_set_report"
            id="menu_translation_set_report"
            sequence="10"/>

        <record model="ir.ui.view" id="translation_clean_start_view_form">
            <field name="model">ir.translation.clean.start</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <![CDATA[
                <form string="Clean Translations" col="2">
                    <image name="tryton-dialog-information" xexpand="0" xfill="0"/>
                    <label string="Clean Translations?" id="clean"
                        yalign="0.0" xalign="0.0" xexpand="1"/>
                </form>
                ]]>
            </field>
        </record>

        <record model="ir.ui.view" id="translation_clean_succeed_view_form">
            <field name="model">ir.translation.clean.succeed</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <![CDATA[
                <form string="Clean Translations">
                    <image name="tryton-dialog-information" xexpand="0" xfill="0"/>
                    <label string="Clean Translations Succeed!" id="succeed"
                        yalign="0.0" xalign="0.0" xexpand="1"/>
                </form>
                ]]>
            </field>
        </record>

        <record model="ir.action.wizard" id="act_translation_clean">
            <field name="name">Clean Translations</field>
            <field name="wiz_name">ir.translation.clean</field>
        </record>
        <menuitem name="Clean Translations"
            parent="menu_localization"
            action="act_translation_clean"
            id="menu_translation_clean"
            sequence="20"/>

        <record model="ir.ui.view" id="translation_update_start_view_form">
            <field name="model">ir.translation.update.start</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <![CDATA[
                <form string="Synchronize Translations">
                    <label name="language"/>
                    <field name="language" widget="selection"/>
                </form>
                ]]>
            </field>
        </record>

        <record model="ir.action.wizard" id="act_translation_update">
            <field name="name">Synchronize Translations</field>
            <field name="wiz_name">ir.translation.update</field>
        </record>
        <menuitem name="Synchronize Translations"
            parent="menu_localization"
            action="act_translation_update"
            id="menu_translation_update"
            sequence="30"/>

        <record model="ir.ui.view" id="translation_export_start_view_form">
            <field name="model">ir.translation.export.start</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <![CDATA[
                <form string="Export Translation">
                    <label name="language"/>
                    <field name="language" widget="selection"/>
                    <label name="module"/>
                    <field name="module" widget="selection"/>
                </form>
                ]]>
            </field>
        </record>

        <record model="ir.ui.view" id="translation_export_result_view_form">
            <field name="model">ir.translation.export.result</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <![CDATA[
                <form string="Export Translation">
                    <label name="file"/>
                    <field name="file"/>
                </form>
                ]]>
            </field>
        </record>

        <record model="ir.action.wizard" id="act_translation_export">
            <field name="name">Export Translations</field>
            <field name="wiz_name">ir.translation.export</field>
        </record>
        <menuitem name="Export Translations"
            parent="menu_localization"
            action="act_translation_export"
            id="menu_translation_export"
            sequence="40"/>
    </data>
</tryton>
