From f0f612047d63340ef4bba5dec2e7f745863ccd3e Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Wed, 22 Jul 2015 21:56:07 +0200 Subject: [PATCH 1/3] web_translate_dialog: port to v8 --- .../__init__.py | 0 .../__openerp__.py | 13 ++++--------- .../i18n/es.po | 0 .../i18n/fr.po | 0 .../i18n/nl.po | 0 .../i18n/tr.po | 0 .../i18n/web_translate_dialog.pot | 0 .../static/src/css/base.css | 0 .../static/src/js/web_translate_dialog.js | 0 .../static/src/xml/base.xml | 0 web_translate_dialog/view/web_translate.xml | 13 +++++++++++++ 11 files changed, 17 insertions(+), 9 deletions(-) rename {__unported__/web_translate_dialog => web_translate_dialog}/__init__.py (100%) rename {__unported__/web_translate_dialog => web_translate_dialog}/__openerp__.py (86%) rename {__unported__/web_translate_dialog => web_translate_dialog}/i18n/es.po (100%) rename {__unported__/web_translate_dialog => web_translate_dialog}/i18n/fr.po (100%) rename {__unported__/web_translate_dialog => web_translate_dialog}/i18n/nl.po (100%) rename {__unported__/web_translate_dialog => web_translate_dialog}/i18n/tr.po (100%) rename {__unported__/web_translate_dialog => web_translate_dialog}/i18n/web_translate_dialog.pot (100%) rename {__unported__/web_translate_dialog => web_translate_dialog}/static/src/css/base.css (100%) rename {__unported__/web_translate_dialog => web_translate_dialog}/static/src/js/web_translate_dialog.js (100%) rename {__unported__/web_translate_dialog => web_translate_dialog}/static/src/xml/base.xml (100%) create mode 100644 web_translate_dialog/view/web_translate.xml 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 86% rename from __unported__/web_translate_dialog/__openerp__.py rename to web_translate_dialog/__openerp__.py index 95c0c9b10..27e2483ae 100644 --- a/__unported__/web_translate_dialog/__openerp__.py +++ b/web_translate_dialog/__openerp__.py @@ -32,14 +32,9 @@ Replace the standard translation view by an alternative one: """, "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", - ], + "depends": ['web'], + 'data': ['view/web_translate.xml'], + 'qweb': ["static/src/xml/base.xml"], 'auto_install': False, - 'installable': False, + '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 @@ + + + + + + + + From 2a2b489ee04d717b4d0e59ed63b8e0d6e6ea66c5 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Sun, 26 Jul 2015 22:07:45 +0200 Subject: [PATCH 2/3] Move module description to README.rst --- web_translate_dialog/README.rst | 35 +++++++++++++++++++++++++++++ web_translate_dialog/__openerp__.py | 13 ++--------- 2 files changed, 37 insertions(+), 11 deletions(-) create mode 100644 web_translate_dialog/README.rst diff --git a/web_translate_dialog/README.rst b/web_translate_dialog/README.rst new file mode 100644 index 000000000..fa5ec3e36 --- /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 old users of OpenERP, 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. + +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/web_translate_dialog/__openerp__.py b/web_translate_dialog/__openerp__.py index 27e2483ae..2392b82df 100644 --- a/web_translate_dialog/__openerp__.py +++ b/web_translate_dialog/__openerp__.py @@ -21,20 +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'], 'data': ['view/web_translate.xml'], 'qweb': ["static/src/xml/base.xml"], - 'auto_install': False, 'installable': True, } From 1d781286b4f0d340ffacc7f4b638038842400a40 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Sun, 9 Aug 2015 18:32:03 +0200 Subject: [PATCH 3/3] Improve README --- web_translate_dialog/README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web_translate_dialog/README.rst b/web_translate_dialog/README.rst index fa5ec3e36..d0c95f0b1 100644 --- a/web_translate_dialog/README.rst +++ b/web_translate_dialog/README.rst @@ -1,7 +1,7 @@ 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 old users of OpenERP, it may remind them the translation pop-up of OpenERP 6.1). +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 @@ -11,7 +11,7 @@ This module also features : 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. +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 =======