From f08c70b357dc38f74e745139634feef423825689 Mon Sep 17 00:00:00 2001 From: "Yenthe V.G" Date: Mon, 29 May 2017 11:53:24 +0200 Subject: [PATCH] [FIX] pos_mercury: Display warning in user's language Closes #17261 --- addons/pos_mercury/i18n/pos_mercury.pot | 14 ++++++++++++++ addons/pos_mercury/static/src/js/pos_mercury.js | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/addons/pos_mercury/i18n/pos_mercury.pot b/addons/pos_mercury/i18n/pos_mercury.pot index 43184001ea8..1c70c16acc2 100644 --- a/addons/pos_mercury/i18n/pos_mercury.pot +++ b/addons/pos_mercury/i18n/pos_mercury.pot @@ -139,6 +139,13 @@ msgstr "" msgid "Could Not Encrypt Response- Call Provider" msgstr "" +#. module: pos_mercury +#. openerp-web +#: code:addons/pos_mercury/static/src/js/pos_mercury.js:357 +#, python-format +msgid "Could not read card" +msgstr "" + #. module: pos_mercury #: model:ir.model.fields,field_description:pos_mercury.field_pos_mercury_configuration_create_uid #: model:ir.model.fields,field_description:pos_mercury.field_pos_mercury_mercury_transaction_create_uid @@ -191,6 +198,13 @@ msgstr "" msgid "Empty Command String" msgstr "" +#. module: pos_mercury +#. openerp-web +#: code:addons/pos_mercury/static/src/js/pos_mercury.js:638 +#, python-format +msgid "Error" +msgstr "" + #. module: pos_mercury #. openerp-web #: code:addons/pos_mercury/static/src/js/pos_mercury.js:198 diff --git a/addons/pos_mercury/static/src/js/pos_mercury.js b/addons/pos_mercury/static/src/js/pos_mercury.js index 20e602c7aa2..3a1f47b5ee2 100644 --- a/addons/pos_mercury/static/src/js/pos_mercury.js +++ b/addons/pos_mercury/static/src/js/pos_mercury.js @@ -354,7 +354,7 @@ PaymentScreenWidget.include({ if (! decodedMagtek) { this.gui.show_popup('error',{ - 'title': 'Could not read card', + 'title': _t('Could not read card'), 'body': _t('This can be caused by a badly executed swipe or by not having your keyboard layout set to US QWERTY (not US International).'), }); return; @@ -635,7 +635,7 @@ PaymentScreenWidget.include({ if (already_swipe_pending) { this.gui.show_popup('error',{ - 'title': 'Error', + 'title': _t('Error'), 'body': _t('One credit card swipe already pending.'), }); } else {