1 <?xml version="1.0" encoding="utf-8"?>
4 <record id="res_lang_tree" model="ir.ui.view">
5 <field name="name">res.lang.tree</field>
6 <field name="model">res.lang</field>
7 <field name="arch" type="xml">
8 <tree string="Languages">
11 <field name="iso_code"/>
12 <field name="direction"/>
13 <field name="translatable"/>
14 <field name="active"/>
15 <button name="%(base.action_wizard_update_translations)d"
16 string="Update Terms" type="action" icon="gtk-ok" help="Update Languague Terms"/>
20 <record id="res_lang_form" model="ir.ui.view">
21 <field name="name">res.lang.form</field>
22 <field name="model">res.lang</field>
23 <field name="arch" type="xml">
24 <form string="Languages" version="7.0">
26 <group col="6" colspan="4">
29 <field name="iso_code"/>
31 <field name="grouping" />
32 <field name="date_format"/>
33 <field name="time_format"/>
35 <field name="direction" />
36 <field name="decimal_point"/>
37 <field name="thousands_sep"/>
39 <field name="active" />
40 <field name="translatable"/>
42 <separator colspan="4" string="Legends for Date and Time Formats"/>
43 <group col="4" colspan="4">
44 <label align="0.0" string="%%a - Abbreviated weekday name."/>
45 <label align="0.0" string="%%A - Full weekday name."/>
47 <label align="0.0" string="%%b - Abbreviated month name."/>
48 <label align="0.0" string="%%B - Full month name." />
50 <label align="0.0" string="%%c - Appropriate date and time representation." />
51 <label align="0.0" string="%%d - Day of the month [01,31]." />
53 <label align="0.0" string="%%H - Hour (24-hour clock) [00,23]." />
54 <label align="0.0" string="%%I - Hour (12-hour clock) [01,12]." />
56 <label align="0.0" string="%%j - Day of the year [001,366]." />
57 <label align="0.0" string="%%m - Month number [01,12]." />
59 <label align="0.0" string="%%M - Minute [00,59]." />
60 <label align="0.0" string="%%p - Equivalent of either AM or PM." />
62 <label align="0.0" string="%%S - Seconds [00,61]." />
63 <label align="0.0" string="%%w - Weekday number [0(Sunday),6]." />
65 <label align="0.0" string="%%x - Appropriate date representation." />
66 <label align="0.0" string="%%X - Appropriate time representation." />
68 <label align="0.0" string="%%y - Year without century [00,99]." />
69 <label align="0.0" string="%%Y - Year with century." />
71 <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." />
72 <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." />
74 <label align="0.0" string="======================================================" />
77 <group colspan="4" col="4">
78 <separator string="Examples" colspan="4"/>
80 <label align="0.0" string="1. %%c ==> Fri Dec 5 18:25:20 2008"/>
81 <label align="0.0" string="2. %%a ,%%A ==> Fri, Friday"/>
83 <label align="0.0" string="3. %%x ,%%X ==> 12/05/08, 18:25:20"/>
84 <label align="0.0" string="4. %%b, %%B ==> Dec, December"/>
86 <label align="0.0" string="5. %%y, %%Y ==> 08, 2008"/>
87 <label align="0.0" string="6. %%d, %%m ==> 05, 12"/>
89 <label align="0.0" string="7. %%H:%%M:%%S ==> 18:25:20"/>
90 <label align="0.0" string="8. %%I:%%M:%%S %%p ==> 06:25:20 PM"/>
92 <label align="0.0" string="9. %%j ==> 340"/>
93 <label align="0.0" string="10. %%S ==> 20"/>
95 <label align="0.0" string="11. %%U or %%W ==> 48 (49th week)"/>
96 <label align="0.0" string="12. %%w ==> 5 ( Friday is the 6th day)"/>
103 <record id="res_lang_search" model="ir.ui.view">
104 <field name="name">res.lang.search</field>
105 <field name="model">res.lang</field>
106 <field name="arch" type="xml">
107 <search string="Languages">
109 filter_domain="['|', '|', ('name','ilike',self), ('code','ilike',self), ('iso_code','ilike',self)]"
111 <filter string="Translatable" icon="terp-tools" domain="[('translatable','=',True)]"/>
112 <field name="direction"/>
117 <record id="res_lang_act_window" model="ir.actions.act_window">
118 <field name="name">Languages</field>
119 <field name="res_model">res.lang</field>
120 <field name="view_type">form</field>
121 <field name="context">{'active_test': False}</field>
122 <field name="search_view_id" ref="res_lang_search"/>
124 <menuitem action="res_lang_act_window" id="menu_res_lang_act_window" parent="menu_translation" groups="base.group_no_one" sequence="1"/>