diff options
| author | Romain Derie <rde@odoo.com> | 2020-01-21 14:07:19 +0000 |
|---|---|---|
| committer | Romain Derie <rde@odoo.com> | 2020-01-21 15:32:08 +0000 |
| commit | 98678199a32b3ba9af999f76980a6110546ec0fc (patch) | |
| tree | 3215ff21b65425e0a341b238ce72bfbaf23da103 /addons/web/static/src/xml/pivot.xml | |
| parent | 15c934a1abfc72c965a6b46618b7b2ae6fad49cc (diff) | |
[FIX] *: fix translations inconsistency in 't-set'
This commit fix most `t-set` errors that either led to:
1. unwanted text to be considered as translatable.
eg: `<t t-set="classes">text-left bg-100 p4</t>` would create an
`ir.translation`.
2. text that should be translatable were not.
eg: `<t t-set="text" t-value="'Both'"/>` would not create an
`ir.translation` while it should.
If a text should be translatable, it should never be inside a `t-value`:
- `<t t-set="text">Both</t>`
If a text should not be translatable, it sould either be inside `t-value`,
`t-valuef` or the `<t>` tag should have `t-translation="off"`:
- `<t t-set="classes" t-translation="off">text-left bg-100 p4</t>`
- `<t t-set="classes" t-valuef="text-left bg-100 p4"/>`
- `<t t-set="classes" t-value="'text-left bg-100 p4'"/>`
https://github.com/odoo/odoo/pull/43660
https://github.com/odoo/enterprise/pull/7839
https://github.com/odoo/design-themes/pull/203
closes odoo/odoo#43660
Related: odoo/enterprise#7839
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml/pivot.xml')
| -rw-r--r-- | addons/web/static/src/xml/pivot.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web/static/src/xml/pivot.xml b/addons/web/static/src/xml/pivot.xml index 6e85f1170de..bfc08e56bd1 100644 --- a/addons/web/static/src/xml/pivot.xml +++ b/addons/web/static/src/xml/pivot.xml @@ -3,9 +3,9 @@ <div t-name="web.PivotRenderer" class="o_pivot" owl="1"> <t t-if="!props.hasData || !props.measures.length" t-call="web.NoContentHelper"> - <t t-set="description" t-value="'Try to add some records, or make sure - that there is at least one measure and - no active filter in the search bar'"/> + <t t-set="description"> + Try to add some records, or make sure that there is at least one measure and no active filter in the search bar + </t> </t> <table t-else="1" class="table-hover table-sm table-bordered" t-att-class="{ o_enable_linking: !props.disableLinking }"> <thead> |
