3
0
Fork 0

Merge pull request #184 from akretion/8.0-translate-dialog

Port web_translate_dialog to 8.0
9.0
Pedro M. Baeza 2015-08-09 21:40:57 +02:00
commit 0f386c122a
12 changed files with 54 additions and 20 deletions

View File

@ -0,0 +1,35 @@
Web Translate Dialog
====================
This module replaces the standard translation view by an easy-to-use pop-up view where you can translate all the fields of the object in all the installed languages (for the ancient users, it may remind them the translation pop-up of OpenERP 6.1).
This module also features :
* Adds a *Translate* button item in the *More* menu
* Support HTML fields
* Autosize the textareas to the size of the content
Usage
=====
Go to an object that has translatable fields (*Products* for example) and select *More > Translate* (or click on *Edit* and then click on the flag at the top-right of one of the translatable fields): the translation view will pop-up on your screen. This translation view contains all the translatable fields of the object.
Credits
=======
Contributors
------------
* Guewen Baconnier (Camptocamp)
Maintainer
----------
.. image:: http://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: http://odoo-community.org
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
To contribute to this module, please visit http://odoo-community.org.

View File

@ -21,25 +21,11 @@
{"name": "Web Translate Dialog", {"name": "Web Translate Dialog",
"category": "Hidden", "category": "Hidden",
"description": """ "summary": "Easy-to-use pop-up to translate fields in several languages",
Replace the standard translation view by an alternative one: "description": "",
* Add a "Translate" button item in the "More" menu
* The translations are displayed in a dialog (much like the OpenERP
6.1's one)
* Support HTML fields
* Autosize the textareas to the size of the content
""",
"version": "1.0", "version": "1.0",
"depends": ['web', "depends": ['web'],
], 'data': ['view/web_translate.xml'],
'js': ['static/src/js/web_translate_dialog.js', 'qweb': ["static/src/xml/base.xml"],
], 'installable': True,
'css': ['static/src/css/base.css',
],
'qweb': ["static/src/xml/base.xml",
],
'auto_install': False,
'installable': False,
} }

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="assets_backend" name="web_translate_dialog assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<script type="text/javascript" src="/web_translate_dialog/static/src/js/web_translate_dialog.js"></script>
<link rel="stylesheet" href="/web_translate_dialog/static/src/css/base.css" id="translate-dialog-stylesheet"/>
</xpath>
</template>
</data>
</openerp>