[FIX] base, web: BooleanFavoriteField wasn't translated
- BooleanFavouriteField wasn't translated as the component was using an untranslated variable instead of relying on the translation of the template. Some other translation fixing: - ID Azienda is very generic, the correct name is Numero REA: See: https://www.registroimprese.it/codice-fiscale-p.iva-rea - No one calls a mobile phone "Dispositivo mobile", we already translate it as the more common "Cellulare" even in the same file task-3263708 closes odoo/odoo#157949 Signed-off-by: Paolo Gatti (pgi) <pgi@odoo.com>
This commit is contained in:
@@ -1043,6 +1043,15 @@ msgstr "Aggiungi data di fine"
|
||||
msgid "Add qweb directive context"
|
||||
msgstr "Aggiungi contesto direttive qweb"
|
||||
|
||||
#. module: web
|
||||
#. odoo-javascript
|
||||
#: code:addons/web/static/src/views/fields/boolean_favorite/boolean_favorite_field.xml:0
|
||||
#: code:addons/web/static/src/views/fields/boolean_favorite/boolean_favorite_field.xml:0
|
||||
#: code:addons/web/static/src/views/fields/boolean_favorite/boolean_favorite_field.xml:0
|
||||
#, python-format
|
||||
msgid "Add to Favorites"
|
||||
msgstr "Aggiungi ai Preferiti"
|
||||
|
||||
#. module: web
|
||||
#. odoo-javascript
|
||||
#: code:addons/web/static/src/views/fields/datetime/datetime_field.xml:0
|
||||
@@ -6081,6 +6090,15 @@ msgstr "Rimuovi copertina"
|
||||
msgid "Remove Property"
|
||||
msgstr "Elimina proprietà"
|
||||
|
||||
#. module: web
|
||||
#. odoo-javascript
|
||||
#: code:addons/web/static/src/views/fields/boolean_favorite/boolean_favorite_field.xml:0
|
||||
#: code:addons/web/static/src/views/fields/boolean_favorite/boolean_favorite_field.xml:0
|
||||
#: code:addons/web/static/src/views/fields/boolean_favorite/boolean_favorite_field.xml:0
|
||||
#, python-format
|
||||
msgid "Remove from Favorites"
|
||||
msgstr "Rimuovi dai Preferiti"
|
||||
|
||||
#. module: web
|
||||
#. odoo-javascript
|
||||
#: code:addons/web/static/src/views/view_dialogs/export_data_dialog.js:0
|
||||
|
||||
@@ -1020,6 +1020,15 @@ msgstr ""
|
||||
msgid "Add start date"
|
||||
msgstr ""
|
||||
|
||||
#. module: web
|
||||
#. odoo-javascript
|
||||
#: code:addons/web/static/src/views/fields/boolean_favorite/boolean_favorite_field.xml:0
|
||||
#: code:addons/web/static/src/views/fields/boolean_favorite/boolean_favorite_field.xml:0
|
||||
#: code:addons/web/static/src/views/fields/boolean_favorite/boolean_favorite_field.xml:0
|
||||
#, python-format
|
||||
msgid "Add to Favorites"
|
||||
msgstr ""
|
||||
|
||||
#. module: web
|
||||
#. odoo-javascript
|
||||
#: code:addons/web/static/src/views/fields/x2many/x2many_field.js:0
|
||||
@@ -5972,6 +5981,15 @@ msgstr ""
|
||||
msgid "Remove field"
|
||||
msgstr ""
|
||||
|
||||
#. module: web
|
||||
#. odoo-javascript
|
||||
#: code:addons/web/static/src/views/fields/boolean_favorite/boolean_favorite_field.xml:0
|
||||
#: code:addons/web/static/src/views/fields/boolean_favorite/boolean_favorite_field.xml:0
|
||||
#: code:addons/web/static/src/views/fields/boolean_favorite/boolean_favorite_field.xml:0
|
||||
#, python-format
|
||||
msgid "Remove from Favorites"
|
||||
msgstr ""
|
||||
|
||||
#. module: web
|
||||
#. odoo-javascript
|
||||
#: code:addons/web/static/src/views/calendar/filter_panel/calendar_filter_panel.xml:0
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
<t t-name="web.BooleanFavoriteField">
|
||||
<div class="o_favorite" t-on-click.prevent.stop="update">
|
||||
<a href="#">
|
||||
<i
|
||||
class="fa"
|
||||
role="img"
|
||||
t-att-class="props.record.data[props.name] ? 'fa-star' : 'fa-star-o'"
|
||||
t-att-title="props.record.data[props.name] ? 'Remove from Favorites' : 'Add to Favorites'"
|
||||
t-att-aria-label="props.record.data[props.name] ? 'Remove from Favorites' : 'Add to Favorites'"
|
||||
/>
|
||||
<t t-if="!props.noLabel"> <t t-esc="props.record.data[props.name] ? 'Remove from Favorites' : 'Add to Favorites'" /></t>
|
||||
<t t-if="props.record.data[props.name]">
|
||||
<i class="fa fa-star me-1" role="img" title="Remove from Favorites" aria-label="Remove from Favorites"/>
|
||||
<t t-if="!props.noLabel">Remove from Favorites</t>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<i class="fa fa-star-o me-1" role="img" title="Add to Favorites" aria-label="Add to Favorites"/>
|
||||
<t t-if="!props.noLabel">Add to Favorites</t>
|
||||
</t>
|
||||
</a>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
@@ -56,7 +56,7 @@ QUnit.module("Fields", (hooks) => {
|
||||
);
|
||||
assert.strictEqual(
|
||||
target.querySelector(".o_kanban_record .o_field_widget .o_favorite > a").textContent,
|
||||
" Remove from Favorites",
|
||||
"Remove from Favorites",
|
||||
'the label should say "Remove from Favorites"'
|
||||
);
|
||||
|
||||
@@ -69,7 +69,7 @@ QUnit.module("Fields", (hooks) => {
|
||||
);
|
||||
assert.strictEqual(
|
||||
target.querySelector(".o_kanban_record .o_field_widget .o_favorite > a").textContent,
|
||||
" Add to Favorites",
|
||||
"Add to Favorites",
|
||||
'the label should say "Add to Favorites"'
|
||||
);
|
||||
});
|
||||
@@ -107,7 +107,7 @@ QUnit.module("Fields", (hooks) => {
|
||||
);
|
||||
assert.strictEqual(
|
||||
target.querySelector(".o_kanban_record .o_field_widget .o_favorite > a").textContent,
|
||||
" Add to Favorites",
|
||||
"Add to Favorites",
|
||||
'the label should say "Add to Favorites"'
|
||||
);
|
||||
|
||||
@@ -149,7 +149,7 @@ QUnit.module("Fields", (hooks) => {
|
||||
assert.strictEqual(
|
||||
target.querySelector(".o_kanban_record .o_field_widget .o_favorite > a")
|
||||
.textContent,
|
||||
" Add to Favorites",
|
||||
"Add to Favorites",
|
||||
'the label should say "Add to Favorites"'
|
||||
);
|
||||
|
||||
@@ -180,7 +180,7 @@ QUnit.module("Fields", (hooks) => {
|
||||
);
|
||||
assert.strictEqual(
|
||||
target.querySelector(".o_field_widget .o_favorite > a").textContent,
|
||||
" Remove from Favorites",
|
||||
"Remove from Favorites",
|
||||
'the label should say "Remove from Favorites"'
|
||||
);
|
||||
|
||||
@@ -193,7 +193,7 @@ QUnit.module("Fields", (hooks) => {
|
||||
);
|
||||
assert.strictEqual(
|
||||
target.querySelector(".o_field_widget .o_favorite > a").textContent,
|
||||
" Add to Favorites",
|
||||
"Add to Favorites",
|
||||
'the label should say "Add to Favorites"'
|
||||
);
|
||||
|
||||
@@ -204,7 +204,7 @@ QUnit.module("Fields", (hooks) => {
|
||||
);
|
||||
assert.strictEqual(
|
||||
target.querySelector(".o_field_widget .o_favorite > a").textContent,
|
||||
" Add to Favorites",
|
||||
"Add to Favorites",
|
||||
'the label should say "Add to Favorites"'
|
||||
);
|
||||
|
||||
@@ -217,7 +217,7 @@ QUnit.module("Fields", (hooks) => {
|
||||
);
|
||||
assert.strictEqual(
|
||||
target.querySelector(".o_field_widget .o_favorite > a").textContent,
|
||||
" Remove from Favorites",
|
||||
"Remove from Favorites",
|
||||
'the label should say "Remove from Favorites"'
|
||||
);
|
||||
|
||||
@@ -230,7 +230,7 @@ QUnit.module("Fields", (hooks) => {
|
||||
);
|
||||
assert.strictEqual(
|
||||
target.querySelector(".o_field_widget .o_favorite > a").textContent,
|
||||
" Remove from Favorites",
|
||||
"Remove from Favorites",
|
||||
'the label should say "Remove from Favorites"'
|
||||
);
|
||||
});
|
||||
|
||||
@@ -16929,7 +16929,7 @@ msgstr "Dettagli azienda"
|
||||
#: model:ir.model.fields,field_description:base.field_res_partner__company_registry
|
||||
#: model:ir.model.fields,field_description:base.field_res_users__company_registry
|
||||
msgid "Company ID"
|
||||
msgstr "ID Azienda"
|
||||
msgstr "Numero REA"
|
||||
|
||||
#. module: base
|
||||
#: model:ir.model.fields,field_description:base.field_res_company__logo
|
||||
@@ -25694,7 +25694,7 @@ msgstr "Signor"
|
||||
#: model_terms:ir.ui.view,arch_db:base.contact
|
||||
#, python-format
|
||||
msgid "Mobile"
|
||||
msgstr "Dispositivo mobile"
|
||||
msgstr "Cellulare"
|
||||
|
||||
#. module: base
|
||||
#: model:ir.model.fields,field_description:base.field_ir_actions_act_window__mobile_view_mode
|
||||
|
||||
Reference in New Issue
Block a user