[FIX] website_sale: translate waiting message
closes odoo/odoo#40456 X-original-commit: 50d2a80e458bcf99025bf2e96afafd8606745c85 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
@@ -6,8 +6,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 13.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-10-18 09:46+0000\n"
|
||||
"PO-Revision-Date: 2019-10-18 09:46+0000\n"
|
||||
"POT-Creation-Date: 2019-11-18 15:26+0000\n"
|
||||
"PO-Revision-Date: 2019-11-18 15:26+0000\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@@ -2845,6 +2845,13 @@ msgid ""
|
||||
"time."
|
||||
msgstr ""
|
||||
|
||||
#. module: website_sale
|
||||
#. openerp-web
|
||||
#: code:addons/website_sale/static/src/js/website_sale_validate.js:49
|
||||
#, python-format
|
||||
msgid "We are waiting the confirmation of the bank or payment provider"
|
||||
msgstr ""
|
||||
|
||||
#. module: website_sale
|
||||
#: model_terms:ir.ui.view,arch_db:website_sale.s_products_searchbar
|
||||
msgid "We have amazing products in our shop, check them now !"
|
||||
|
||||
@@ -2,6 +2,8 @@ odoo.define('website_sale.validate', function (require) {
|
||||
'use strict';
|
||||
|
||||
var publicWidget = require('web.public.widget');
|
||||
var core = require('web.core');
|
||||
var _t = core._t;
|
||||
|
||||
publicWidget.registry.websiteSaleValidate = publicWidget.Widget.extend({
|
||||
selector: 'div.oe_website_sale_tx_status[data-order-id]',
|
||||
@@ -36,9 +38,9 @@ publicWidget.registry.websiteSaleValidate = publicWidget.Widget.extend({
|
||||
}, Math.ceil(self._poll_nbr / 3) * 1000);
|
||||
} else {
|
||||
var $message = $(result.message);
|
||||
$message.find('span:first').prepend(
|
||||
$("<i title='We are waiting the confirmation of the bank or payment provider' class='fa fa-warning' style='margin-right:10px;'>")
|
||||
);
|
||||
var $warning = $("<i class='fa fa-warning' style='margin-right:10px;'>");
|
||||
$warning.attr("title", _t("We are waiting the confirmation of the bank or payment provider"));
|
||||
$message.find('span:first').prepend($warning);
|
||||
result.message = $message.html();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user