diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2020-03-24 11:51:32 +0000 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2020-03-24 14:46:30 +0000 |
| commit | f3182c6035b502bc99144e00b502cc39fd88536b (patch) | |
| tree | 70953842f15f5c12fe9d187e2c5dbe9037f81ee6 /addons/web/static/src/js/core/qweb.js | |
| parent | 25e39cdf1b460277f306104c5d1beaaee70c0d5b (diff) | |
[FIX] translate.py,web: aria-label qweb translation and export
In 12.0 9de1bc0e aria-label translation was added for python views, but:
- aria-label attribute are not exported
- aria-label are not translated for JS view rendering
So by default, aria-label would only be translated for python views that
had the same aria-label term in a translatable element (eg. "title"
attribute).
opw-2222504
closes #48255
closes odoo/odoo#48275
X-original-commit: 6b6b11ea2f8391f1f195bd1650531f77b6bed729
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/core/qweb.js')
| -rw-r--r-- | addons/web/static/src/js/core/qweb.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/core/qweb.js b/addons/web/static/src/js/core/qweb.js index 253e948d8ac..0261abc528b 100644 --- a/addons/web/static/src/js/core/qweb.js +++ b/addons/web/static/src/js/core/qweb.js @@ -48,7 +48,7 @@ function preprocess_node() { break; case Node.ELEMENT_NODE: // Element - var attr, attrs = ['label', 'title', 'alt', 'placeholder']; + var attr, attrs = ['label', 'title', 'alt', 'placeholder', 'aria-label']; while ((attr = attrs.pop())) { if (this.attributes[attr]) { this.attributes[attr] = _t(this.attributes[attr]); |
