diff options
| author | Anael Closson <acl@openerp.com> | 2013-04-11 18:20:35 +0200 |
|---|---|---|
| committer | Anael Closson <acl@openerp.com> | 2013-04-11 18:20:35 +0200 |
| commit | 543c6012da4022087cb0d2ed5a24571371500f9b (patch) | |
| tree | 7c9cd8db3d7a26098e1bc9afbc8d4423cbcbb62f /addons/web/static/src/js/coresetup.js | |
| parent | e2620bb5c70c5fa8b810e8d73ef075779bc45bc3 (diff) | |
[FIX] Multiline texts could not be matched for tranlations
bzr revid: acl@openerp.com-20130411162035-ij47tyulejkqqz4t
Diffstat (limited to 'addons/web/static/src/js/coresetup.js')
| -rw-r--r-- | addons/web/static/src/js/coresetup.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/coresetup.js b/addons/web/static/src/js/coresetup.js index dedb4a49710..fd1ace312a9 100644 --- a/addons/web/static/src/js/coresetup.js +++ b/addons/web/static/src/js/coresetup.js @@ -562,7 +562,7 @@ instance.web.qweb.preprocess_node = function() { if (translation && translation.value === 'off') { return; } - var match = /^(\s*)(.+?)(\s*)$/.exec(this.node.data); + var match = /^(\s*)([\s\S]+?)(\s*)$/.exec(this.node.data); if (match) { this.node.data = match[1] + instance.web._t(match[2]) + match[3]; } |
