Browse Source

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

Port web_translate_dialog to 8.0
pull/201/head
Pedro M. Baeza 9 years ago
parent
commit
0f386c122a
  1. 35
      web_translate_dialog/README.rst
  2. 0
      web_translate_dialog/__init__.py
  3. 26
      web_translate_dialog/__openerp__.py
  4. 0
      web_translate_dialog/i18n/es.po
  5. 0
      web_translate_dialog/i18n/fr.po
  6. 0
      web_translate_dialog/i18n/nl.po
  7. 0
      web_translate_dialog/i18n/tr.po
  8. 0
      web_translate_dialog/i18n/web_translate_dialog.pot
  9. 0
      web_translate_dialog/static/src/css/base.css
  10. 0
      web_translate_dialog/static/src/js/web_translate_dialog.js
  11. 0
      web_translate_dialog/static/src/xml/base.xml
  12. 13
      web_translate_dialog/view/web_translate.xml

35
web_translate_dialog/README.rst

@ -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.

0
__unported__/web_translate_dialog/__init__.py → web_translate_dialog/__init__.py

26
__unported__/web_translate_dialog/__openerp__.py → web_translate_dialog/__openerp__.py

@ -21,25 +21,11 @@
{"name": "Web Translate Dialog",
"category": "Hidden",
"description": """
Replace the standard translation view by an alternative one:
* 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
""",
"summary": "Easy-to-use pop-up to translate fields in several languages",
"description": "",
"version": "1.0",
"depends": ['web',
],
'js': ['static/src/js/web_translate_dialog.js',
],
'css': ['static/src/css/base.css',
],
'qweb': ["static/src/xml/base.xml",
],
'auto_install': False,
'installable': False,
"depends": ['web'],
'data': ['view/web_translate.xml'],
'qweb': ["static/src/xml/base.xml"],
'installable': True,
}

0
__unported__/web_translate_dialog/i18n/es.po → web_translate_dialog/i18n/es.po

0
__unported__/web_translate_dialog/i18n/fr.po → web_translate_dialog/i18n/fr.po

0
__unported__/web_translate_dialog/i18n/nl.po → web_translate_dialog/i18n/nl.po

0
__unported__/web_translate_dialog/i18n/tr.po → web_translate_dialog/i18n/tr.po

0
__unported__/web_translate_dialog/i18n/web_translate_dialog.pot → web_translate_dialog/i18n/web_translate_dialog.pot

0
__unported__/web_translate_dialog/static/src/css/base.css → web_translate_dialog/static/src/css/base.css

0
__unported__/web_translate_dialog/static/src/js/web_translate_dialog.js → web_translate_dialog/static/src/js/web_translate_dialog.js

0
__unported__/web_translate_dialog/static/src/xml/base.xml → web_translate_dialog/static/src/xml/base.xml

13
web_translate_dialog/view/web_translate.xml

@ -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>
Loading…
Cancel
Save