diff options
| author | Lucas Perais (lpe) <lpe@odoo.com> | 2020-02-24 16:28:08 +0000 |
|---|---|---|
| committer | Lucas Perais (lpe) <lpe@odoo.com> | 2020-04-17 12:55:32 +0000 |
| commit | 69b51ce05e855b2b95e75919ac97996a1ff5e136 (patch) | |
| tree | adfc4fbc37f0b696eef46c75cf1d2a161c07ad0b /addons/sms/static/src/xml/thread.xml | |
| parent | bf97152ce99f84a524ed8773280b4bba8fca38da (diff) | |
[FIX] translate: do not export OWL directive's attribute
Have a static template of the form:
```xml
<div t-name="ComponentA">
<ComponentB title="no export" />
</div>
```
To be used by OWL (github.com/odoo/owl)
In this context, the title in the attributes of ComponentB
should not be considered as *the* title attribute of HTML
but as a sort of variable declaration
Before this commit, the string contained in the value of this
title attribute was exported. It was not translated at runtime,
but we want to export as less stuff as possible in PO files
So, after this commit, none of the attributes held by a OWL directive
are exported
This commit relies on OWL Syntax, which makes mandatory
for a component directive's first letter to be capitalized
https://github.com/odoo/owl/blob/master/doc/reference/component.md#composition
Also, it relies on the good practice and widespread convention to have
every HTML node lower cased
https://www.w3schools.com/html/html5_syntax.asp
closes odoo/odoo#46191
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/sms/static/src/xml/thread.xml')
0 files changed, 0 insertions, 0 deletions
