diff --git a/src/js/controllers/backup.js b/src/js/controllers/backup.js index 93234d824..ea9325a64 100644 --- a/src/js/controllers/backup.js +++ b/src/js/controllers/backup.js @@ -1,7 +1,7 @@ 'use strict'; angular.module('copayApp.controllers').controller('backupController', - function($rootScope, $scope, $timeout, backupService, profileService, isMobile, isCordova, notification, go, gettext) { + function($rootScope, $scope, $timeout, backupService, profileService, isMobile, isCordova, notification, go, gettext, gettextCatalog) { this.isSafari = isMobile.Safari(); this.isCordova = isCordova; this.error = null; @@ -54,7 +54,7 @@ angular.module('copayApp.controllers').controller('backupController', var ew = this.getBackup(); if (!ew) return; window.cordova.plugins.clipboard.copy(ew); - window.plugins.toast.showShortCenter('Copied to clipboard'); + window.plugins.toast.showShortCenter(gettextCatalog.getString('Copied to clipboard')); $rootScope.$emit('Local/BackupDone'); }; @@ -63,7 +63,7 @@ angular.module('copayApp.controllers').controller('backupController', if (isMobile.Android() || isMobile.Windows()) { window.ignoreMobilePause = true; } - window.plugins.toast.showShortCenter('Preparing backup...'); + window.plugins.toast.showShortCenter(gettextCatalog.getString('Preparing backup...')); var name = (fc.credentials.walletName || fc.credentials.walletId); if (fc.alias) { name = fc.alias + ' [' + name + ']'; diff --git a/src/js/controllers/walletHome.js b/src/js/controllers/walletHome.js index fed86da03..4b8935b70 100644 --- a/src/js/controllers/walletHome.js +++ b/src/js/controllers/walletHome.js @@ -431,7 +431,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi this.copyAddress = function(addr) { if (isCordova) { window.cordova.plugins.clipboard.copy(addr); - window.plugins.toast.showShortCenter('Copied to clipboard'); + window.plugins.toast.showShortCenter(gettextCatalog.getString('Copied to clipboard')); } else if (nodeWebkit.isDefined()) { nodeWebkit.writeToClipboard(addr); }