From 68729b71a33dc76140c2e196c1abee01eb419a45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Thu, 3 Aug 2017 10:26:43 -0300 Subject: [PATCH] use app name for err message --- src/js/services/profileService.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/js/services/profileService.js b/src/js/services/profileService.js index d5598a5b8..9c00cec35 100644 --- a/src/js/services/profileService.js +++ b/src/js/services/profileService.js @@ -1,6 +1,6 @@ 'use strict'; angular.module('copayApp.services') - .factory('profileService', function profileServiceFactory($rootScope, $timeout, $filter, $log, sjcl, lodash, storageService, bwcService, configService, gettextCatalog, bwcError, uxLanguage, platformInfo, txFormatService, $state) { + .factory('profileService', function profileServiceFactory($rootScope, $timeout, $filter, $log, $state, sjcl, lodash, storageService, bwcService, configService, gettextCatalog, bwcError, uxLanguage, platformInfo, txFormatService, appConfigService) { var isChromeApp = platformInfo.isChromeApp; @@ -495,7 +495,9 @@ angular.module('copayApp.services') var walletId = client.credentials.walletId if (!root.profile.addWallet(JSON.parse(client.export()))) - return cb(gettextCatalog.getString('Wallet already in Copay')); + return cb(gettextCatalog.getString("Wallet already in {{appName}}", { + appName: appConfigService.nameCase + })); var skipKeyValidation = shouldSkipValidation(walletId);