diff options
| author | Jeremy Kersten <jke@odoo.com> | 2014-06-20 17:33:09 +0200 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2014-06-20 17:33:09 +0200 |
| commit | 18bb52ee88575db88df1f0401419fd20c1005e5c (patch) | |
| tree | 09a3d6445eb9d603b3139dc51591fcffad1a7574 /addons/website/static/src/js | |
| parent | 65f68c1f653a9f491cded87cd223949cc2c02493 (diff) | |
[FIX] Gengo - Update modoel ir_translation for gengo and make it working. Works with order and not job, because when you send a batch to translate, you don't know all the job but only the order.
Diffstat (limited to 'addons/website/static/src/js')
| -rw-r--r-- | addons/website/static/src/js/website.translator.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/website/static/src/js/website.translator.js b/addons/website/static/src/js/website.translator.js index e88b1e4a6b6..ee61a154d73 100644 --- a/addons/website/static/src/js/website.translator.js +++ b/addons/website/static/src/js/website.translator.js @@ -6,6 +6,7 @@ var nodialog = 'website_translator_nodialog'; website.EditorBar.include({ + do_not_translate : ['-','*','!'], events: _.extend({}, website.EditorBar.prototype.events, { 'click a[data-action=edit_master]': 'edit_master', }), @@ -129,7 +130,7 @@ node.className += ' oe_translatable_inprogress'; } } else { - node.className += ' oe_translatable_todo'; + node.className += this.do_not_translate.indexOf(node.textContent.trim()) ? ' oe_translatable_todo' : ''; } node.contentEditable = true; var nid = _.uniqueId(); |
