[FIX] point_of_sale : translate error messages

closes odoo/odoo#73955

X-original-commit: 871d80c7631b3a47d2d3770cbe374b94731d25d0
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
Florent de Labarre
2021-07-19 11:00:08 +00:00
committed by Martin Trigaux
parent 71a7f5be71
commit 6cf1d464e2
2 changed files with 26 additions and 32 deletions
+23 -29
View File
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server saas~14.4\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-07-12 07:49+0000\n"
"PO-Revision-Date: 2021-07-12 07:49+0000\n"
"POT-Creation-Date: 2021-07-19 08:54+0000\n"
"PO-Revision-Date: 2021-07-19 08:54+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -1418,21 +1418,6 @@ msgstr ""
msgid "Delete Unpaid Orders ?"
msgstr ""
#. module: point_of_sale
#. openerp-web
#: code:addons/point_of_sale/static/src/js/Screens/ClientListScreen/ClientListScreen.js:0
#, python-format
msgid "Deselect Customer"
msgstr ""
#. module: point_of_sale
#: model:product.product,name:point_of_sale.desk_organizer
#: model:product.template,name:point_of_sale.desk_organizer_product_template
#: model_terms:ir.ui.view,arch_db:point_of_sale.customer_facing_display_html
#: model_terms:pos.config,customer_facing_display_html:point_of_sale.pos_config_main
msgid "Desk Organizer"
msgstr ""
#. module: point_of_sale
#: model:ir.model.fields,field_description:point_of_sale.field_pos_close_session_wizard__account_id
msgid "Destination account"
@@ -1653,6 +1638,13 @@ msgstr ""
msgid "Email Receipt"
msgstr ""
#. module: point_of_sale
#. openerp-web
#: code:addons/point_of_sale/static/src/js/Screens/ReceiptScreen/ReceiptScreen.js:0
#, python-format
msgid "Email sent."
msgstr ""
#. module: point_of_sale
#. openerp-web
#: code:addons/point_of_sale/static/src/xml/Screens/TicketScreen/TicketScreen.xml:0
@@ -2105,6 +2097,13 @@ msgstr ""
msgid "Invalid action"
msgstr ""
#. module: point_of_sale
#. openerp-web
#: code:addons/point_of_sale/static/src/js/Screens/ReceiptScreen/ReceiptScreen.js:0
#, python-format
msgid "Invalid email."
msgstr ""
#. module: point_of_sale
#. openerp-web
#: code:addons/point_of_sale/static/src/xml/Screens/ProductScreen/Orderline.xml:0
@@ -2513,11 +2512,6 @@ msgstr ""
msgid "New Session"
msgstr ""
#. module: point_of_sale
#: model:ir.model.fields,field_description:point_of_sale.field_pos_session__activity_calendar_event_id
msgid "Next Activity Calendar Event"
msgstr ""
#. module: point_of_sale
#: model:ir.model.fields,field_description:point_of_sale.field_pos_session__activity_date_deadline
msgid "Next Activity Deadline"
@@ -4131,6 +4125,13 @@ msgstr ""
msgid "Send by email"
msgstr ""
#. module: point_of_sale
#. openerp-web
#: code:addons/point_of_sale/static/src/js/Screens/ReceiptScreen/ReceiptScreen.js:0
#, python-format
msgid "Sending email failed. Please try again."
msgstr ""
#. module: point_of_sale
#: model:ir.model.fields,field_description:point_of_sale.field_pos_category__sequence
msgid "Sequence"
@@ -4218,13 +4219,6 @@ msgstr ""
msgid "Set Closing Cash"
msgstr ""
#. module: point_of_sale
#. openerp-web
#: code:addons/point_of_sale/static/src/js/Screens/ClientListScreen/ClientListScreen.js:0
#, python-format
msgid "Set Customer"
msgstr ""
#. module: point_of_sale
#: model_terms:ir.ui.view,arch_db:point_of_sale.view_account_bnk_stmt_cashbox_footer
msgid "Set Default Cash Opening"
@@ -32,16 +32,16 @@ odoo.define('point_of_sale.ReceiptScreen', function (require) {
async onSendEmail() {
if (!is_email(this.orderUiState.inputEmail)) {
this.orderUiState.emailSuccessful = false;
this.orderUiState.emailNotice = 'Invalid email.';
this.orderUiState.emailNotice = this.env._t('Invalid email.');
return;
}
try {
await this._sendReceiptToCustomer();
this.orderUiState.emailSuccessful = true;
this.orderUiState.emailNotice = 'Email sent.'
this.orderUiState.emailNotice = this.env._t('Email sent.');
} catch (error) {
this.orderUiState.emailSuccessful = false;
this.orderUiState.emailNotice = 'Sending email failed. Please try again.'
this.orderUiState.emailNotice = this.env._t('Sending email failed. Please try again.');
}
}
get orderAmountPlusTip() {