diff --git a/web_translate_dialog/README.rst b/web_translate_dialog/README.rst new file mode 100644 index 000000000..d0c95f0b1 --- /dev/null +++ b/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. diff --git a/__unported__/web_translate_dialog/__init__.py b/web_translate_dialog/__init__.py similarity index 100% rename from __unported__/web_translate_dialog/__init__.py rename to web_translate_dialog/__init__.py diff --git a/__unported__/web_translate_dialog/__openerp__.py b/web_translate_dialog/__openerp__.py similarity index 65% rename from __unported__/web_translate_dialog/__openerp__.py rename to web_translate_dialog/__openerp__.py index 95c0c9b10..2392b82df 100644 --- a/__unported__/web_translate_dialog/__openerp__.py +++ b/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, } diff --git a/__unported__/web_translate_dialog/i18n/es.po b/web_translate_dialog/i18n/es.po similarity index 100% rename from __unported__/web_translate_dialog/i18n/es.po rename to web_translate_dialog/i18n/es.po diff --git a/__unported__/web_translate_dialog/i18n/fr.po b/web_translate_dialog/i18n/fr.po similarity index 100% rename from __unported__/web_translate_dialog/i18n/fr.po rename to web_translate_dialog/i18n/fr.po diff --git a/__unported__/web_translate_dialog/i18n/nl.po b/web_translate_dialog/i18n/nl.po similarity index 100% rename from __unported__/web_translate_dialog/i18n/nl.po rename to web_translate_dialog/i18n/nl.po diff --git a/__unported__/web_translate_dialog/i18n/tr.po b/web_translate_dialog/i18n/tr.po similarity index 100% rename from __unported__/web_translate_dialog/i18n/tr.po rename to web_translate_dialog/i18n/tr.po diff --git a/__unported__/web_translate_dialog/i18n/web_translate_dialog.pot b/web_translate_dialog/i18n/web_translate_dialog.pot similarity index 100% rename from __unported__/web_translate_dialog/i18n/web_translate_dialog.pot rename to web_translate_dialog/i18n/web_translate_dialog.pot diff --git a/__unported__/web_translate_dialog/static/src/css/base.css b/web_translate_dialog/static/src/css/base.css similarity index 100% rename from __unported__/web_translate_dialog/static/src/css/base.css rename to web_translate_dialog/static/src/css/base.css diff --git a/__unported__/web_translate_dialog/static/src/js/web_translate_dialog.js b/web_translate_dialog/static/src/js/web_translate_dialog.js similarity index 100% rename from __unported__/web_translate_dialog/static/src/js/web_translate_dialog.js rename to web_translate_dialog/static/src/js/web_translate_dialog.js diff --git a/__unported__/web_translate_dialog/static/src/xml/base.xml b/web_translate_dialog/static/src/xml/base.xml similarity index 100% rename from __unported__/web_translate_dialog/static/src/xml/base.xml rename to web_translate_dialog/static/src/xml/base.xml diff --git a/web_translate_dialog/view/web_translate.xml b/web_translate_dialog/view/web_translate.xml new file mode 100644 index 000000000..51ea19e6f --- /dev/null +++ b/web_translate_dialog/view/web_translate.xml @@ -0,0 +1,13 @@ + + + + + + + +