From 39f7d96f9a7998410d8f53c2ed19284baef66a33 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Wed, 27 Sep 2017 15:46:09 -0300 Subject: [PATCH] MeLi: Update translations. Fix icon --- src/js/controllers/buyMercadoLibre.js | 12 ++++++------ src/js/services/mercadoLibreService.js | 4 ++-- src/sass/views/tab-home.scss | 3 ++- www/views/buyMercadoLibre.html | 14 +++++++------- 4 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/js/controllers/buyMercadoLibre.js b/src/js/controllers/buyMercadoLibre.js index 2bd96ed55..9df04fbc9 100644 --- a/src/js/controllers/buyMercadoLibre.js +++ b/src/js/controllers/buyMercadoLibre.js @@ -54,7 +54,7 @@ angular.module('copayApp.controllers').controller('buyMercadoLibreController', f var statusChangeHandler = function(processName, showName, isOn) { $log.debug('statusChangeHandler: ', processName, showName, isOn); - if (processName == 'buyingGiftCard' && !isOn) { + if (processName == 'Comprando Vale-presente' && !isOn) { $scope.sendStatus = 'success'; $timeout(function() { $scope.$digest(); @@ -174,14 +174,14 @@ angular.module('copayApp.controllers').controller('buyMercadoLibreController', f $log.debug("creating gift card " + count); if (err) { $scope.sendStatus = ''; - ongoingProcess.set('buyingGiftCard', false, statusChangeHandler); + ongoingProcess.set('Comprando Vale-presente', false, statusChangeHandler); giftCard = {}; giftCard.status = 'FAILURE'; } if (giftCard && giftCard.cardStatus && (giftCard.cardStatus != 'active' && giftCard.cardStatus != 'inactive' && giftCard.cardStatus != 'expired')) { $scope.sendStatus = ''; - ongoingProcess.set('buyingGiftCard', false, statusChangeHandler); + ongoingProcess.set('Comprando Vale-presente', false, statusChangeHandler); giftCard = {}; giftCard.status = 'FAILURE'; } @@ -205,7 +205,7 @@ angular.module('copayApp.controllers').controller('buyMercadoLibreController', f newData['uuid'] = dataSrc.uuid; mercadoLibreService.savePendingGiftCard(newData, null, function(err) { - ongoingProcess.set('buyingGiftCard', false, statusChangeHandler); + ongoingProcess.set('Comprando Vale-presente', false, statusChangeHandler); $log.debug("Saving new gift card with status: " + newData.status); $scope.mlGiftCard = newData; }); @@ -311,10 +311,10 @@ angular.module('copayApp.controllers').controller('buyMercadoLibreController', f return; } - ongoingProcess.set('buyingGiftCard', true, statusChangeHandler); + ongoingProcess.set('Comprando Vale-presente', true, statusChangeHandler); publishAndSign($scope.wallet, createdTx, function() {}, function(err, txSent) { if (err) { - ongoingProcess.set('buyingGiftCard', false, statusChangeHandler); + ongoingProcess.set('Comprando Vale-presente', false, statusChangeHandler); showError(gettextCatalog.getString('Could not send transaction'), err); return; } diff --git a/src/js/services/mercadoLibreService.js b/src/js/services/mercadoLibreService.js index 80263a961..ed5e594ee 100644 --- a/src/js/services/mercadoLibreService.js +++ b/src/js/services/mercadoLibreService.js @@ -26,14 +26,14 @@ angular.module('copayApp.services').factory('mercadoLibreService', function($htt var homeItem = { name: 'mercadoLibre', - title: 'Mercado Livre Brazil Gift Cards', + title: 'Vales-presente do Mercado Livre Brasil', icon: 'icon-ml', sref: 'tabs.giftcards.mercadoLibre', }; var nextStepItem = { name: 'mercadoLibre', - title: 'Buy Mercado Livre Brazil Gift Cards', + title: 'Vales-presente do Mercado Livre Brasil', icon: 'icon-ml', sref: 'tabs.giftcards.mercadoLibre', }; diff --git a/src/sass/views/tab-home.scss b/src/sass/views/tab-home.scss index 99dc0f4da..d49c5ad4f 100644 --- a/src/sass/views/tab-home.scss +++ b/src/sass/views/tab-home.scss @@ -19,7 +19,8 @@ } .icon-ml { background-image: url("../img/mercado-libre/icon-ml.svg"); - height: 27px; + background-position: center; + background-size: 85%; } .bg { &.wallet { diff --git a/www/views/buyMercadoLibre.html b/www/views/buyMercadoLibre.html index 322259a01..5145b2b43 100644 --- a/www/views/buyMercadoLibre.html +++ b/www/views/buyMercadoLibre.html @@ -16,7 +16,7 @@
- Mercado Livre Brazil Gift Cards + Vales-presente do Mercado Livre Brasil
{{amountUnitStr}}
@@ -74,29 +74,29 @@ ng-click="buyConfirm()" ng-if="!isCordova" click-send-status="sendStatus"> - {{'Confirm purchase'|translate}} + Confirmar compra - {{'Slide to buy'|translate}} + Deslize para comprar - Your purchase could not be completed + Sua compra não pôde ser completada - Your purchase was added to the list of pending + Sua compra foi adicionada à lista de pendentes - Bought {{mlGiftCard.amount}} {{mlGiftCard.currency}} + Comprou {{mlGiftCard.amount}} {{mlGiftCard.currency}}
- Gift card generated and ready to use. + Vale-presente gerado e pronto para usar