diff --git a/addons/point_of_sale/i18n/point_of_sale.pot b/addons/point_of_sale/i18n/point_of_sale.pot index 63e2217ef67..8d9fab6adbe 100644 --- a/addons/point_of_sale/i18n/point_of_sale.pot +++ b/addons/point_of_sale/i18n/point_of_sale.pot @@ -1059,6 +1059,13 @@ msgstr "" msgid "Confirm" msgstr "" +#. module: point_of_sale +#. openerp-web +#: code:addons/point_of_sale/static/src/js/Popups/NumberPopup.js:0 +#, python-format +msgid "Confirm ?" +msgstr "" + #. module: point_of_sale #: model_terms:ir.ui.view,arch_db:point_of_sale.pos_config_view_form msgid "Connect devices to your PoS directly without an IoT Box" diff --git a/addons/point_of_sale/static/src/js/Popups/NumberPopup.js b/addons/point_of_sale/static/src/js/Popups/NumberPopup.js index 080e56f22f3..0e4b7861285 100644 --- a/addons/point_of_sale/static/src/js/Popups/NumberPopup.js +++ b/addons/point_of_sale/static/src/js/Popups/NumberPopup.js @@ -1,5 +1,7 @@ odoo.define('point_of_sale.NumberPopup', function(require) { 'use strict'; + var core = require('web.core'); + var _t = core._t; const { useState } = owl; const AbstractAwaitablePopup = require('point_of_sale.AbstractAwaitablePopup'); @@ -62,9 +64,9 @@ odoo.define('point_of_sale.NumberPopup', function(require) { } NumberPopup.template = 'NumberPopup'; NumberPopup.defaultProps = { - confirmText: 'Ok', - cancelText: 'Cancel', - title: 'Confirm ?', + confirmText: _t('Ok'), + cancelText: _t('Cancel'), + title: _t('Confirm ?'), body: '', cheap: false, startingValue: null,