Added strings to translate. Updates spanish
This commit is contained in:
parent
cbf3d7cceb
commit
ecee13d96f
13 changed files with 206 additions and 71 deletions
|
|
@ -61,7 +61,7 @@ angular.module('copayApp.controllers').controller('createController',
|
|||
self.loading = false;
|
||||
if (err) {
|
||||
$log.debug(err);
|
||||
self.error = gettext('Could not create wallet: ') + err;
|
||||
self.error = err;
|
||||
}
|
||||
else {
|
||||
go.walletHome();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('importController',
|
||||
function($scope, $rootScope, $location, $timeout, $log, profileService, notification, go, isMobile, isCordova, sjcl) {
|
||||
function($scope, $rootScope, $location, $timeout, $log, profileService, notification, go, isMobile, isCordova, sjcl, gettext) {
|
||||
|
||||
var self = this;
|
||||
|
||||
|
|
@ -17,15 +17,20 @@ angular.module('copayApp.controllers').controller('importController',
|
|||
});
|
||||
|
||||
var _import = function(str, opts) {
|
||||
var str2;
|
||||
var str2, err;
|
||||
try {
|
||||
str2 = sjcl.decrypt(self.password, str);
|
||||
} catch (e) {
|
||||
self.error = gettext('Could not decrypt file, check your password');
|
||||
err = gettext('Could not decrypt file, check your password');
|
||||
$log.warn(e);
|
||||
return;
|
||||
};
|
||||
|
||||
if (err) {
|
||||
self.error = err;
|
||||
$rootScope.$apply();
|
||||
return;
|
||||
}
|
||||
|
||||
self.loading = true;
|
||||
|
||||
$timeout(function() {
|
||||
|
|
|
|||
|
|
@ -500,7 +500,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
};
|
||||
|
||||
self.setDefaultLanguage = function(setLang) {
|
||||
var userLang
|
||||
var userLang;
|
||||
if (!setLang) {
|
||||
userLang = configService.getSync().wallet.settings.defaultLanguage;
|
||||
if (!userLang) {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('preferencesDeleteWalletController',
|
||||
function($scope, $rootScope, $filter, $timeout, $modal, notification, profileService, isCordova, go, gettext) {
|
||||
function($scope, $rootScope, $filter, $timeout, $modal, $log, notification, profileService, isCordova, go, gettext, gettextCatalog) {
|
||||
this.isCordova = isCordova;
|
||||
this.error = null;
|
||||
|
||||
|
|
@ -33,25 +33,17 @@ angular.module('copayApp.controllers').controller('preferencesDeleteWalletContro
|
|||
};
|
||||
|
||||
var _deleteWallet = function() {
|
||||
$timeout(function() {
|
||||
var fc = profileService.focusedClient;
|
||||
var walletName = fc.credentials.walletName;
|
||||
var fc = profileService.focusedClient;
|
||||
var walletName = fc.credentials.walletName;
|
||||
var self = this;
|
||||
|
||||
profileService.deleteWalletFC({}, function(err) {
|
||||
if (err) {
|
||||
this.error = err.message || err;
|
||||
console.log(err);
|
||||
$timeout(function() {
|
||||
$scope.$digest();
|
||||
});
|
||||
} else {
|
||||
go.walletHome();
|
||||
$timeout(function() {
|
||||
notification.success(gettext('Success'), gettextCatalog.getString('The wallet "{{walletName}}" was deleted', {walletName: walletName}));
|
||||
});
|
||||
}
|
||||
});
|
||||
}, 100);
|
||||
profileService.deleteWalletFC({}, function(err) {
|
||||
if (err) {
|
||||
self.error = err.message || err;
|
||||
} else {
|
||||
notification.success(gettext('Success'), gettextCatalog.getString('The wallet "{{walletName}}" was deleted', {walletName: walletName}));
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
this.deleteWallet = function() {
|
||||
|
|
|
|||
|
|
@ -683,7 +683,8 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
|||
|
||||
var satToUnit = 1 / this.unitToSatoshi;
|
||||
var self = this;
|
||||
self.setOngoingProcess(gettext('Fetching Payment Informantion'));
|
||||
/// Get information of payment if using Payment Protocol
|
||||
self.setOngoingProcess(gettext('Fetching Payment Information'));
|
||||
|
||||
$log.debug('Fetch PayPro Request...', uri);
|
||||
$timeout(function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue