<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record id="res_lang_tree" model="ir.ui.view">
            <field name="name">res.lang.tree</field>
            <field name="model">res.lang</field>
            <field name="arch" type="xml">
                <tree string="Languages">
                    <field name="name"/>
                    <field name="code"/>
                    <field name="iso_code"/>
                    <field name="direction"/>
                    <field name="translatable"/>
                    <field name="active"/>
                    <button name="%(base.action_wizard_update_translations)d"
                    string="Update Terms" type="action" icon="gtk-ok" help="Update Languague Terms"/>
                </tree>
            </field>
        </record>
        <record id="res_lang_form" model="ir.ui.view">
            <field name="name">res.lang.form</field>
            <field name="model">res.lang</field>
            <field name="arch" type="xml">
                <form string="Languages" version="7.0">
                   <sheet>
                    <group col="6" colspan="4">
                        <field name="name"/>
                        <field name="code" />
                        <field name="iso_code"/>
                        <newline/>
                        <field name="grouping" />
                        <field name="date_format"/>
                        <field name="time_format"/>
                        <newline/>
                        <field name="direction" />
                        <field name="decimal_point"/>
                        <field name="thousands_sep"/>
                        <newline/>
                        <field name="active" />
                        <field name="translatable"/>
                    </group>
                    <separator colspan="4" string="Legends for Date and Time Formats"/>
                    <group col="4" colspan="4">
                         <label align="0.0" string="%%a - Abbreviated weekday name."/>
                         <label align="0.0" string="%%A - Full weekday name."/>
                         <newline/>
                         <label align="0.0" string="%%b - Abbreviated month name."/>
                         <label align="0.0" string="%%B - Full month name." />
                         <newline/>
                         <label align="0.0" string="%%c - Appropriate date and time representation." />
                         <label align="0.0" string="%%d - Day of the month [01,31]." />
                         <newline/>
                         <label align="0.0" string="%%H - Hour (24-hour clock) [00,23]." />
                         <label align="0.0" string="%%I - Hour (12-hour clock) [01,12]." />
                         <newline/>
                         <label align="0.0" string="%%j - Day of the year [001,366]." />
                         <label align="0.0" string="%%m - Month number [01,12]." />
                         <newline/>
                         <label align="0.0" string="%%M - Minute [00,59]." />
                         <label align="0.0" string="%%p - Equivalent of either AM or PM." />
                         <newline/>
                         <label align="0.0" string="%%S - Seconds [00,61]." />
                         <label align="0.0" string="%%w - Weekday number [0(Sunday),6]." />
                         <newline/>
                         <label align="0.0" string="%%x - Appropriate date representation." />
                         <label align="0.0" string="%%X - Appropriate time representation." />
                         <newline/>
                         <label align="0.0" string="%%y - Year without century [00,99]." />
                         <label align="0.0" string="%%Y - Year with century." />
                         <newline/>
                         <label align="0.0" string="%%U - Week number of the year (Sunday as the first day of the week) as a decimal number [00,53]. All days in a new year preceding the first Sunday are considered to be in week 0." />
                         <label align="0.0" string="%%W - Week number of the year (Monday as the first day of the week) as a decimal number [00,53]. All days in a new year preceding the first Monday are considered to be in week 0." />
                         <newline/>
                         <label align="0.0" string="======================================================" />
                    </group>
                    <newline/>
                    <group colspan="4" col="4">
                        <separator string="Examples" colspan="4"/>
                        <newline/>
                        <label align="0.0" string="1.  %%c              ==> Fri Dec  5 18:25:20 2008"/>
                        <label align="0.0" string="2.  %%a ,%%A         ==> Fri, Friday"/>
                        <newline/>
                        <label align="0.0" string="3.  %%x ,%%X         ==> 12/05/08, 18:25:20"/>
                        <label align="0.0" string="4.  %%b, %%B         ==> Dec, December"/>
                        <newline/>
                        <label align="0.0" string="5.  %%y, %%Y         ==> 08, 2008"/>
                        <label align="0.0" string="6.  %%d, %%m         ==> 05, 12"/>
                        <newline/>
                        <label align="0.0" string="7.  %%H:%%M:%%S      ==> 18:25:20"/>
                        <label align="0.0" string="8.  %%I:%%M:%%S %%p  ==> 06:25:20 PM"/>
                        <newline/>
                        <label align="0.0" string="9.  %%j              ==> 340"/>
                        <label align="0.0" string="10. %%S              ==> 20"/>
                        <newline/>
                        <label align="0.0" string="11. %%U or %%W       ==> 48 (49th week)"/>
                        <label align="0.0" string="12. %%w              ==> 5 ( Friday is the 6th day)"/>
                        <newline/>
                    </group>
                  </sheet>
                </form>
            </field>
        </record>
        <record id="res_lang_search" model="ir.ui.view">
            <field name="name">res.lang.search</field>
            <field name="model">res.lang</field>
            <field name="arch" type="xml">
                <search string="Languages">
                    <field name="name"
                        filter_domain="['|', '|', ('name','ilike',self), ('code','ilike',self), ('iso_code','ilike',self)]"
                        string="Language"/>
                    <filter string="Translatable" icon="terp-tools" domain="[('translatable','=',True)]"/>
                    <field name="direction"/>
                </search>
            </field>
        </record>

        <record id="res_lang_act_window" model="ir.actions.act_window">
            <field name="name">Languages</field>
            <field name="res_model">res.lang</field>
            <field name="view_type">form</field>
            <field name="context">{'active_test': False}</field>
            <field name="search_view_id" ref="res_lang_search"/>
        </record>
        <menuitem action="res_lang_act_window" id="menu_res_lang_act_window" parent="menu_translation" groups="base.group_no_one" sequence="1"/>
    </data>
</openerp>
