base_export_language_views.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <record id="wizard_lang_export" model="ir.ui.view">
  5. <field name="name">Export Translations</field>
  6. <field name="model">base.language.export</field>
  7. <field name="arch" type="xml">
  8. <form string="Export Translations">
  9. <field invisible="1" name="state"/>
  10. <field name="name" invisible="1"/>
  11. <group states="choose" string="Export Settings">
  12. <field name="lang"/>
  13. <field name="format"/>
  14. <field name="modules" widget="many2many_tags" options="{'no_create': True}"/>
  15. </group>
  16. <div states="get">
  17. <h2>Export Complete</h2>
  18. <p>Here is the exported translation file: <field name="data" readonly="1" filename="name"/></p>
  19. <p>This file was generated using the universal <strong>Unicode/UTF-8</strong> file encoding, please be sure to view and edit
  20. using the same encoding.</p>
  21. <p>The next step depends on the file format:
  22. <ul>
  23. <li>CSV format: you may edit it directly with your favorite spreadsheet software,
  24. the rightmost column (value) contains the translations</li>
  25. <li>PO(T) format: you should edit it with a PO editor such as
  26. <a href="http://www.poedit.net/" target="_blank">POEdit</a>, or your preferred text editor</li>
  27. <li>TGZ format: bundles multiple PO(T) files as a single archive</li>
  28. </ul>
  29. </p>
  30. <p>For more details about translating Odoo in your language, please refer to the
  31. <a href="https://github.com/odoo/odoo/wiki/Translations" target="_blank">documentation</a>.</p>
  32. </div>
  33. <footer states="choose">
  34. <button name="act_getfile" string="Export" type="object" class="btn-primary" data-hotkey="q"/>
  35. <button special="cancel" data-hotkey="z" string="Cancel" type="object" class="btn-secondary"/>
  36. </footer>
  37. <footer states="get">
  38. <button special="cancel" data-hotkey="z" string="Close" type="object" class="btn-primary"/>
  39. </footer>
  40. </form>
  41. </field>
  42. </record>
  43. <record id="action_wizard_lang_export" model="ir.actions.act_window">
  44. <field name="name">Export Translation</field>
  45. <field name="type">ir.actions.act_window</field>
  46. <field name="res_model">base.language.export</field>
  47. <field name="view_mode">form</field>
  48. <field name="target">new</field>
  49. </record>
  50. <menuitem action="action_wizard_lang_export" id="menu_wizard_lang_export" parent="menu_translation_export"/>
  51. </data>
  52. </odoo>