From b4b48427181b50b558fbeff25863fa66863752da Mon Sep 17 00:00:00 2001 From: "Louis (wil)" Date: Fri, 10 Nov 2023 19:05:29 +0100 Subject: [PATCH] [I18N] web: remove unfortunate wording Administrators sometimes machine-translate Odoo into their own language. In this respect, we should avoid ambiguous wording* that could be poorly machine-translated. \*: in this case, the onomatopoeia "Poof!" was misinterpreted by a machine-translation as a British slur. opw-3590503 closes odoo/odoo#141723 Signed-off-by: Tiffany Chang (tic) --- addons/web/i18n/web.pot | 8 +++++--- .../core/confirmation_dialog/confirmation_dialog.js | 10 ++++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/addons/web/i18n/web.pot b/addons/web/i18n/web.pot index 23501013d78..ebcc84ce276 100644 --- a/addons/web/i18n/web.pot +++ b/addons/web/i18n/web.pot @@ -1737,6 +1737,8 @@ msgstr "" #. module: web #. odoo-javascript +#: code:addons/web/static/src/core/model_field_selector/model_field_selector.xml:0 +#: code:addons/web/static/src/core/model_field_selector/model_field_selector.xml:0 #: code:addons/web/static/src/core/tree_editor/tree_editor.xml:0 #: code:addons/web/static/src/views/fields/binary/binary_field.xml:0 #: code:addons/web/static/src/views/fields/image/image_field.xml:0 @@ -2928,8 +2930,8 @@ msgid "Expression is invalid. Please correct it" msgstr "" #. module: web -#. odoo-python #. odoo-javascript +#. odoo-python #: code:addons/web/controllers/export.py:0 #: code:addons/web/controllers/export.py:0 #: code:addons/web/static/src/views/list/list_controller.js:0 @@ -5802,7 +5804,7 @@ msgstr "" msgid "" "Ready to make your record disappear into thin air? Are you sure?\n" "\n" -"Poof! It will be gone forever!\n" +"It will be gone forever!\n" "\n" "\n" "Think twice before you click that 'Delete' button!" @@ -7342,8 +7344,8 @@ msgid "Uncaught Promise" msgstr "" #. module: web -#. odoo-python #. odoo-javascript +#. odoo-python #: code:addons/web/controllers/export.py:0 #: code:addons/web/static/src/views/calendar/calendar_model.js:0 #, python-format diff --git a/addons/web/static/src/core/confirmation_dialog/confirmation_dialog.js b/addons/web/static/src/core/confirmation_dialog/confirmation_dialog.js index 07f99754a5c..83123f4de8a 100644 --- a/addons/web/static/src/core/confirmation_dialog/confirmation_dialog.js +++ b/addons/web/static/src/core/confirmation_dialog/confirmation_dialog.js @@ -1,14 +1,16 @@ /** @odoo-module */ import { Dialog } from "../dialog/dialog"; -import { _t, _lt } from "@web/core/l10n/translation"; +import { _t } from "@web/core/l10n/translation"; import { useChildRef } from "@web/core/utils/hooks"; import { Component } from "@odoo/owl"; -export const deleteConfirmationMessage = _lt("Ready to make your record disappear into thin air? Are you sure?\n\ -Poof! It will be gone forever!\n\ -\nThink twice before you click that 'Delete' button!"); +export const deleteConfirmationMessage = _t( + "Ready to make your record disappear into thin air? Are you sure?\n\ +It will be gone forever!\n\n\ +Think twice before you click that 'Delete' button!" +); export class ConfirmationDialog extends Component { setup() {