diff options
| author | Raphael Collet <rco@openerp.com> | 2015-04-22 15:38:42 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2015-07-06 16:58:04 +0200 |
| commit | 9bd60ca93510e410a0136b8b433f596330900593 (patch) | |
| tree | 39708e89570536de313e49487c0ebfe339fc370d /addons/document/document_view.xml | |
| parent | 1ea32f1daf062bda7a1c6742ebeb1030768f2ae0 (diff) | |
[IMP] translate: translation optionally wrap translated terms inside a <span>
Note: We do not translate `<a>` elements inline. Translating `<a>` elements is
triggering issues in the website editor tool: menu items are screwed up. The
menu items are handled by bootstrap, which expects menu items to be `<a>`
elements inside `<li>` inside `<ul>` elements. The introduction of a `<span>`
in the middle of this hierarchy breaks its functionality. Therefore we decided
to not translate `<a>` elements inline.
When invoking `read()` with `'website_editor`' in the context, missing
translations are automatically created, so that translated terms are always
wrapped as `<span data-oe-translation-id="...">...</span>`.
Diffstat (limited to 'addons/document/document_view.xml')
0 files changed, 0 insertions, 0 deletions
