[FIX] pos_mercury: Display warning in user's language

Closes #17261
This commit is contained in:
Yenthe V.G
2017-05-29 12:15:27 +02:00
committed by Yannick Tivisse
parent fa1a09f6e8
commit f08c70b357
2 changed files with 16 additions and 2 deletions
+14
View File
@@ -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
@@ -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 {